Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Field values are coming from the script if i try to create ATF i can't see that values in choice

kranthi2
Tera Expert

Hi,

Field values are coming from the script if i try to create ATF i can't see that values in choice.

I have a Catalog item which Solution Type and Reason for Deployment choice values are coming from some script.

 

kranthi2_0-1715928662400.png

 

 

kranthi2_1-1715928693800.png

 

if i set those 2 field values I can't see the choice=NRM for both the fields in the ATF.

kranthi2_2-1715928884135.png

 

 

kranthi2_3-1715928989303.png

 

Please help me out how can is set these values in ATF(Automated Test Framework)

 

Thanks,

 

 

 

 

 

 

1 ACCEPTED SOLUTION

Hi

 

Step1: Enable parameterized testing

karthiknagaramu_0-1715937627236.png

Step2: Define a parameter from the 'Parameter Definition' Related list

karthiknagaramu_1-1715937674472.png

 

 

Step3: Set value of the parameter from the 'Test Run Data Sets' related list

karthiknagaramu_2-1715937750472.png

Step4: Chose the parameter in the set variable value step

karthiknagaramu_3-1715937819511.png

 

Regards,

Karthik

View solution in original post

4 REPLIES 4

karthiknagaramu
Kilo Sage

Hi,

 

One option is to enable parameterized testing, create a parameter and set the value for the parameter in input data.

And in the step set value using this parameter

karthiknagaramu_0-1715937359988.png

 

Regards,

Karthik Nagaramu

Hi @karthiknagaramu 

Thanks for your reference.

Could you please little bit clear on your response, i know the Parameterized testing but please help me out with the proper step configuration.

 

Thanks,

Hi

 

Step1: Enable parameterized testing

karthiknagaramu_0-1715937627236.png

Step2: Define a parameter from the 'Parameter Definition' Related list

karthiknagaramu_1-1715937674472.png

 

 

Step3: Set value of the parameter from the 'Test Run Data Sets' related list

karthiknagaramu_2-1715937750472.png

Step4: Chose the parameter in the set variable value step

karthiknagaramu_3-1715937819511.png

 

Regards,

Karthik

Hi @karthiknagaramu 

Thanks for your help on this really appreciate.

 

Thanks,