ReferenceError: task is not defined

Raja6
Tera Expert

find_real_file.png

I'm learning atf in snow . I created a atf test for iPhone 6s catalog in my personal instance .The test fails with the reference error while testing opening catalog task . Anyone faced the same issue and please provide solution to solve this issue. Thanks! PF attached screenshots

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

In the step of open an existing record which table you have selected? you need to use sc_req_item since record is inserted into that

If you already have that then possibly some client side script is throwing error and blocking the atf step

you can open the step which is giving the error; in the related link click on Add errors to ignored list

next time when same error comes it will ignore and run the test

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

View solution in original post

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

In the step of open an existing record which table you have selected? you need to use sc_req_item since record is inserted into that

If you already have that then possibly some client side script is throwing error and blocking the atf step

you can open the step which is giving the error; in the related link click on Add errors to ignored list

next time when same error comes it will ignore and run the test

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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