ATF - Run Server Side Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-16-2024 08:53 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 06:09 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 06:26 AM
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 07:17 AM
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>.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2024 03:17 AM
Follow these steps:
1. Open the respective RITM.
2. validate that is required.
3. Use "Apply filter to list"
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