Analyze your app

Before you begin creating tests, you must determine exactly what you want to test.

To do this, analyze your app in terms of its business processes - the distinct activities that customers perform in your application to complete particular tasks.

Explore the Advantage Online Shopping site

For the purposes of this tutorial, you'll need to become familiar with the Advantage Online Shopping sample site.

Open the following URL in your browser: http://www.advantageonlineshopping.com. If you are using Internet Explorer, for best results, maintain a zoom ratio of 100%.

Browse around the site by creating an account and adding items to your cart to purchase. Select various options, such as color and quantity, and check out your order.

Note: To ensure robust record\replay sessions, we recommend that you work with a single tab in a single browser during record and replay.

Do the following:

  1. Create an Advantage Online account
  2. Add items to your cart
  3. Complete your purchase

Then, start the exercises in this tutorial to learn how to configure UFT One to perform these actions in an automated test. For details, see Create your test structure.

Back to top

Create an Advantage Online account

Create an Advantage Online account.

In addition to familiarizing yourself with the site, you will use this account to create the test later in this tutorial.

Do the following:

  1. In the Advantage Online Shopping site, click the user icon at the top right, and click CREATE NEW ACCOUNT.

  2. Populate the account details fields as needed, and select the I agree checkbox at the bottom.

    Make a note of your username and password for use later on.

  3. Click REGISTER.

Back to top

Add items to your cart

Select various items and add them to your cart.

For example, do the following:

  1. Scroll down to view the POPULAR ITEMS, and then click the View Details link under the HP ROAR PLUS WIRELESS SPEAKER.
  2. On the HOME / SPEAKERS / HP ROAR PLUS WIRELESS SPEAKER page, select the blue button.
  3. Click the button to raise the quantity to 6.
  4. Click ADD TO CART.

Back to top

Complete your purchase

Browse to your cart and complete your purchase order.

For example, do the following:

  1. Click the cart icon at the top right, and then click CHECKOUT.

  2. On the SHOPPING CART page, click CHECKOUT ($1.019.94).

  3. On the ORDER PAYMENT SHIPPING DETAILS page, click NEXT.

  4. On the ORDER PAYMENT PAYMENT METHOD page, ensure that SafePay is selected, and enter a set of demo credentials.

    Alternatively, select MasterCredit and enter demo details for a credit card.

    Caution: SafePay and MasterCredit are demo payment mechanisms. Do not enter real data.

  5. Optionally, select the Save changes in profile for future use option.
  6. Click PAY NOW.

The order details are confirmed on the ORDER PAYMENT page, with a tracking and order number.

Back to top

Next steps: