Automated Test Framework

dwef
Tera Contributor

When testing Change module via ATF (Automated Test Framework) in ServiceNow, filling mandatory fields like categories, subcategories, and target company is essential, but it is throwing error if I set any values for those and then submit .
errors: FAILURE: Failed to set field 'u_target_company' to value '0a6b9f36ec5330009d44fc8b024ccc04' because the reference is NOT valid - for target company field
Invalid insert - as these are dependent fields , u_subcategory - for subactegory fields 

 

help me to fill those and submit the form in ATF

5 REPLIES 5

dwef
Tera Contributor

Thanks for you time !!
But still it is not getting resolved .The user I created in ATF only and I chose company as cognizant for him and in that domain when I opened change I am able to see that subcategory hardware under category hardware but when I am choosing the same in atf set fields values  it is throwing error like this while test is running.
FAILURE: Unable to set field 'u_subcategory' to value 'Hardware'. Value 'Hardware' is not currently a valid choice