ATF Test in Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-04-2019 05:48 AM
Hi experts,
I have 3 things need your help with ATF test for service portal test.
- Step config – add item to shopping Cart(SP). The case is failed with Assert type - successfully added item to shopping Cart. In test runner , I can see the cart is added into cart successfully. When we change the assert type to Cannot add item to shopping Cart, the test case is passed without issue . We can also check out it to cart! Is it an issue?
- When add item to shopping Cart , how to view the cart in ATF? UI Retrieved components is not able to access the page after add item to shopping cart.Can you advice how to view ATF in Cart? Step in ATF:
- Open a Catalog item(SP) , note like item one, the asset time i have to select asset type to Cannot add item to shopping Cart.
- Set Variable Values(SP)
- Set Catalog item quantity(sp)
- add item to shopping Cart(sp) . after retrieve the page, view cart is not able to see. there is no view cart function in ATF.
- not able to view the detail catalog item page in SP from ATF: step to in ATF:
- Navigate to Service Portal Home Module
- Click Catalog Header Menu
- Click Browse Catalog Button
- Click one of Categories and select
- Click the catalog item or View Details . The next step i want to add item to shopping cart. The issue is from here, the order page is not able to display in test runner , also can't retrieve components from the order page. There is no error messages. So we can only use Open a Catalog item(SP) to open an item and add it to cart like the steps in item 2.
add 1 more issue and more details for my issue.
Thanks
Jenny
- Labels:
-
Automated Test Framework

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2019 08:35 PM
Step config – add item to shopping Cart(SP). The case is failed with Assert type - successfully added item to shopping Cart. In test runner , I can see the cart is added into cart successfully. When we change the assert type to Cannot add item to shopping Cart, the test case is passed without issue . We can also check out it to cart! Is it an issue?
I tested this now and it is working as expected in madrid PDI. may be you missed something, do validate your test steps.
add item to shopping Cart(sp) . after retrieve the page, view cart is not able to see. there is no view cart function in ATF.
Unfortunately this feautre is not provided as OOB, you cant do this now.
the order page is not able to display in test runner , also can't retrieve components from the order page. There is no error messages. So we can only use Open a Catalog item(SP) to open an item and add it to cart like the steps in item 2.
you can see order page in test runner but retriving ui components is not possible is not supported.
servicenow is enhancing ATf with more feautres in each relaease so may be in Newyork these feautres will be added but not sure.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-10-2019 08:49 PM
Hi SatheeshKumar
Thanks for your reply, it is strange there is no notification for me for your post.
(1)
item one about add item to shopping Cart(SP)'s asset type , i and my colleague both verified our test step. We see the cart is added to cart in test runner but the test case is failed:
Open a Catalog Item(SP)
Set Variable Values(SP)
Add Catalog Item Quantity(SP)
Add Item to Shopping Cart(SP) - Asset Type(Successfully added to Shopping Cart)
first 3 steps are all test successfully but last test step is failed without detail errors. Please suggest which thing need to check!
After change to Cannot add item to Shopping Cart, it works and the cart can be added and also able to checkout.
(2) View Cart is not available after add Item to Shopping Cart(SP). Any way, when i have a cart item and i test other page and after retrieve that test page the view cart is available but i didn't test it yet not sure if it is good to use click component.
(3) It may cause our page is different than OOB page. The order page is not able to display as well in test runner. After Click View detail or click item , the order page is not displayed. below is the last screenshot in test runner and test result..
If we are not able to display order page and retrieve the order page after select it, this will be a big limitation in ATF SP test. This is a normal action for end user and one of regression cases we want to cover in our ATF test case.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2019 07:57 PM
Hi SatheeshKumar
Thanks for your reply, it is strange there is no notification for me for your post.
(1)
item one about add item to shopping Cart(SP)'s asset type , i and my colleague both verified our test step. We see the cart is added to cart in test runner but the test case is failed:
Open a Catalog Item(SP)
Set Variable Values(SP)
Add Catalog Item Quantity(SP)
Add Item to Shopping Cart(SP) - Asset Type(Successfully added to Shopping Cart)
first 3 steps are all test successfully but last test step is failed without detail errors. Please suggest which thing need to check!
After change to Cannot add item to Shopping Cart, it works and the cart can be added and also able to checkout.
(2) View Cart is not available after add Item to Shopping Cart(SP). Any way, when i have a cart item and i test other page and after retrieve that test page the view cart is available but i didn't test it yet not sure if it is good to use click component.
(3) It may cause our page is different than OOB page. The order page is not able to display as well in test runner. After Click View detail or click item , the order page is not displayed. below is the last screenshot in test runner and test result..
If we are not able to display order page and retrieve the order page after select it, this will be a big limitation in ATF SP test. This is a normal action for end user and one of regression cases we want to cover in our ATF test case.