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-16-2024 01:54 PM - edited 09-16-2024 01:55 PM
the state of the Task also get changed to Closed Incomplete
Could you explain which task are you referring here? Is it the SCTASK? If it's the SCTASK, you could easily get the record using Record Query step(Table: Catalog Task, Condition: Requested Item = <RITM SYS_ID>) and use the returned record in Record Validation step and verify the state.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 12:04 AM
@Ravi Peddineni , Yes, I am referring sc_task. I have got the sc_task with the Record Query step, but the problem here is that the state value which is being set as Closed Incomplete over the task, it not coming in the drop down list when I am using 'Validate FIeld Value' step.
When I checked the choice values for state field, all the values are coming from 'task' table instead of 'sc_task'. Screenshot attached for your reference.
Thanks,
Rooma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 03:45 AM - edited 09-17-2024 03:46 AM
Yes that’s the expected behavior. When you are selecting the state field, don’t select the one from Task. You should see an option called “Catalog Task+”. If you don’t see it scroll to the bottom and click on show related fields. Then select the “Catalog Task+” and dot walk to State field.
Please hit Accept Solution button if my suggestion helped you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-17-2024 05:50 AM
@Ravi Peddineni I had already checked this dot walking option. There is no field "Catalog Task+" to dot walk. There is one field called -"parent+Task field", from this I am selecting the state=Closed Incomplete, but the test case is failing because the sc_task form doesn't have field called parent.state.