-
Notifications
You must be signed in to change notification settings - Fork 1
Reuse Test Example
rahuldantalwal edited this page Apr 27, 2016
·
1 revision
We can use different test cases in one case. That one step can be used as reusable and can have number of steps in it.
Steps for placing the COD order -
- Initializing the application
- Product selection on catalog page, get product info on catalog page
- Add product to bag on PDP page, get product info on PDP and verify info from catalog to PDP page
- Get product info on cart page, verify product info from PDP to cart page and move to checkout from cart page
- Login on checkout page
- Add an address on checkout page
- Get product info on review page, verify info from cart to review page on checkout and proceed to bag on review page
- Select COD payment mode on checkout 4 page and proceed to place the order
- Order placed successfully on thank you page
Steps in Testlink are -
- User @A initialize; the application
- Move to PDP page by calling @R Reusable_Test_Cases:MOVE_TO_PDP_PAGE_FOR_FIRST_LOWEST_PRICE_PRODUCT_ON_CATALOG;
- @R Reusable_Test_Cases : On PDP page, get product info, add product to cart and navigate to cart page.;
- @R Reusable_Test_Cases:On Cart page, verify product info and move to checkout page.;
- User enters login details by calling @R Reusable_Test_Cases : REGISTERED_USER_DETAILS_ON_CHECKOUT;
- @R Reusable_Test_Cases : ADD_NEW_ADDRESS_FOR_REGISTERED_USER
- @R Reusable_Test_Cases:GET_AND_MATCH_PRODUCT_INFO_ON_REVIEW_PAGE;
- Place the order by calling @R Reusable_Test_Cases:CHECKOUT_ORDER_FLOW_FOR_COD;
- Finally verify that order is placed successfully by calling @R Reusable_Test_Cases:ON_THANK_YOU_PAGE_VERIFY_ORDER_PLACED_SUCCESSFULLY;