- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2022 07:50 AM
Hello,
I have to create ATF tests from smoke tests for my company. One of the tests to be created is as follows:
"Naviagte to company portal and select the "Request Hardwre". Complete all the questions. It doesn't matter what you select or enter"
Expected Result: No approval on this cat item. Ritm moves straight to open and 2 tasks are generated.
The "Request hardware" catalog item has 13 fields and all are mandatory except 2.
To make it into an ATF, I have added 8 steps so far which are:
1) create user - the test doesn't identify to impersonate a user so I had to create one.
2) open a catalog item - here I specify the "request hardware" item
3) Set variable value - here I had added all the mandatory variables from the catalog items (left out the ones that are not mandatory). Since it doesn't matter what the value of these variables is I have given them values of test1 etc.
4) Validate variable values - here I have set the validation to the last variable created in the previous step
5) Set Catalog Item Quantity - set it to 1
Up until this when I run the test it runs fine but in the following steps it fails
6) Add item to shopping cart - if its set to true, the test fails and if its set to false the test passes
7) Checkout shopping cart - again if set to false it works but not if set to true
😎 Order catalog item - fails since previous steps have failed
Why is number 6 not working for me? It is a simple step yet it keeps giving an error, what am I doing wrong?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2022 08:22 AM
Is step 6 Add Item to Shopping Cart (SP) test step? I tried this removing some of the steps for variable validation and mind failed on what would be equivalent to your step 7 until I removed setting the requested for. It gave me an error the user does not have writes to change requested for. I also noticed that there was no checkout shopping cart (SP) so maybe you testing shopping cart from the Service Portal is not fully supported.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2022 08:22 AM
Is step 6 Add Item to Shopping Cart (SP) test step? I tried this removing some of the steps for variable validation and mind failed on what would be equivalent to your step 7 until I removed setting the requested for. It gave me an error the user does not have writes to change requested for. I also noticed that there was no checkout shopping cart (SP) so maybe you testing shopping cart from the Service Portal is not fully supported.