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.

Parameterization of Lookup select box in atf

Ravi Sharma
Tera Contributor

Hello Team,

 

Currently i am working on Service Portal page record producer which contain some value in drop down and the "Type" of this drop down is "Lookup Selectbox". While creating atf i tried couple of ways to parameterize this field.

1) Created parameter and given type as "Reference"-- With this the parameter is disable when tried to pull in the test step "set variable value".

 

2) Created parameter and given type as "Choice"-- With the i m able to select in parameter in the test step but during execution value for drop down is not getting set what i pass in parameter. Instead of that it is picking default first value and execution is getting failed with error " not a valid value".

 

Do anybody has face this king of situation?

 

 

3 REPLIES 3

Shaqeel
Mega Sage
Mega Sage

Hi @Ravi Sharma 

 

IS the data set defined?

If yes, I do'nt think it work on SP page.

 

You can use set field and validation steps if the Lov's are not much.

You can refer this article.

https://docs.servicenow.com/bundle/tokyo-application-development/page/administer/auto-test-framework...

Regrds

Shaqeel

 


***********************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting "Accept as Solution" and " Helpful." This action benefits both the community and me.

***********************************************************************************************************************





Regards

Shaqeel

Hi Shaqeel,

 

Yes data set is defined.

But i found the alternate solution, where each data has unique sys_id. So of passing data i am passing sys_id of each data. By this i overcome to the problem

Community Alums
Not applicable

Hi ,

 

I am stuck in the same issue but could-not find any solution. Any suggestions. @Ravi Sharma  @Shaqeel