How to test catalog in service portal and catalog task state should be closed using ATF

Raghav22
Tera Contributor

Hi,

I have created catalog item and also workflow is attached to create catalog task but after that i want to closed catlaog task state to closed complete and also validate RITM is also complete or not.

Below are the steps which i created. I do now it will not produce me to expected result please help me for getting result.

@Ankur Bawiskar appreciated if you help me.

find_real_file.png

 

Thanks,

Raghav

21 REPLIES 21

You can follow below steps:

1)Create User  - to create a sample user
2)Open a Catalog Item (SP)  - to open the catalog item in portal
3)Variable State Validation (SP) - to check fields mandatory visibility etc
4)Open a Form (SP) - to open catalog item form in portal
5)Set Variable Values (SP)  - to set variable values in catalog
6)Order a Catalog Item (SP)  - to order the item.(output will be REQ sysid)
7)Run Server Side Script  - to get the RITM sysid from REQ of step6
8)Open an Existing record - to open RITM from step 7 output
9)Field Values Validation - to check RITM fields like state,etc
10)Record query - to query sc task with parent as RITM
11)Run Server side script - to get any user from assignment group of sc task
12)Record Update - set assigned to field with 11th step output and state as closed complete
13)Open an existing record - open RITM again and check the state

 

Mark as correct and helpful if it does.

Regards,
Sumanth

Thanks Sumanth!! 

I will follow as per your suggestion and will let you know.

Just a ask - 

For step 10 Record query - what condition shall i mention.

For step 11 Run server side script - if i skip 11th step would that be fine because i dont need any user of assignment group

Thanks,

Raghav

Step 10 - Record query with two conditions below

table is sc_task

parent is your RITM generated in previous steps

 

I wrote step 11 because in next steps to close sc task, if assigned to field is mandatory you cannot close it. 

So sorry to ask again can you please explain what does parent is your RITM generated means because as per screen shot attach i can only select table and put condition. In my catalog item there are only 3 fields i.e requested for, short description and description all are mandatory.

I am new to ATF so doesnt know so much.

find_real_file.png

Hi,

table should be sc_task

Condition

Request = Step 4 Output

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader