Failure in setting MRVS variable values in ATF

Mi Mi
Tera Contributor

Hi

 

I'm preparing an ATF test for one of our catalogue items which has the mandatory MRVS. In the test, I added these three steps: -

  • Add row to multi-row variable set (SP)
  • Set Variable Values (SP)
  • Save current row of multi-row variable set (SP)

 

But it is failed to set one of the variable values. The failure message is 'FAILURE: Unable to set field 'Country' to value 'Thailand'. Value 'Thailand' is not currently a valid choice.' That particular variable 'Country' is a look-up select box referenced to the Country table. The other two variables in that MRVS are the date fields.

 

Could any of you assist me in resolving this?

 

Thank you in advance.

11 REPLIES 11

are you setting the county name or reference of that country record from country table. try with reference.


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Mi Mi
Tera Contributor

Hi @AshishKM

The 'core_country' table is used as the lookup from table in that MRVS. Are you suggesting to change the variable type from the lookup select box to the reference in the catalogue item?

yes , u can try with reference type.


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Amit Verma
Kilo Patron
Kilo Patron

Hi @Mi Mi 

 

Country is a reference field in your MRVS so it should be expecting a sys_id of the country record from core_country table. Can you please give the sys_id of the country "Thailand" and retry setting the variable value ?

 

You can find the sys_id of the country "Thailand" by navigating to "core_country" table, searching for Thailand and copying the sys_id by right clicking on Thailand record and selecting copy sys_id. 

 

Thanks & Regards

Amit Verma


Please mark this response as correct and helpful if it assisted you with your question.

Mi Mi
Tera Contributor

Hi @Amit Verma

Thank you for your reply.

The 'core_country' table is used as the lookup from table in that MRVS. How can I add the country sys_id in the test step?