ATF - Run Server Side Script

roomawakar
Tera Contributor

Hi All,

I have test case to write in ATF. The scenario is to check once the RITM gets cancelled. the state of the Task also get changed to Closed Incomplete.

 

I have written all the steps but got hooked in the last step to check the validate the state value of the task as the choice values are being inherited from the 'task' table.

 

How can we validate the state of the particular task whether it closed updated to Closed incomplete or not?

Whether it is possible via the step configuration or we need to wrote server side script? Can someone please help here. Screenshot attached.

 

Thanks,

Rooma

8 REPLIES 8

@roomawakar 

 

OOTB "sc_task" uses the "task" table choices. Could you provide me a screenshot of the state options on sc_task table?  I hope the field is not customized.

@Ravi Peddineni No the field is not customized, please find the screenshot of the state options of sc_task. The value which is being set on the sc_task is 4.

 

roomawakar_0-1726579591872.png

 

@roomawakar 

 

Try it this way. Instead of opening the existing record, just do the server side validation using Record Query in Task table. When you select table as Task in the step, you should be able to see Catalog Task + option. Form there you can easily add your conditions saying RITM is <something from previous step> and State is <Closed Incomplete>.

Shaqeel
Mega Sage

@roomawakar 

 

Follow these steps:

1. Open the respective RITM.

2. validate that is required.

3. Use "Apply filter to list"

Shaqeel_0-1726654594308.png

 

Select Assert type as per your requirement.

 

*************************************************************************************************************
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


***********************************************************************************************************************
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