In this exercise we will capture a user’s journey through the bookstore.
Using the training material use AgileLoad script editor to record a script using the bookstore.
The bookstore site is http://localhost:8080/bookstore - please test that the site is up a running before recording a script.
The steps for the recording are:
- Navigate to the home page
- Login using user: administrator password: administrator
- Choose a book & click on it
- Click ‘Add to Cart’
- Click on the ‘Cart’ tab
- Logout
Exercise 1: Record a script to simulate the action of browsing to a book and buying it following the steps above.
Exercise 2: In order to be able complete the next exercise, record a script that:
- Goes to the Home Page
- Clicks a book
- Click the back button
- Repeat steps 2 & 3 three times then stop
Questions
Relating to Exercise 1
- During replay even after the page has fully loaded the script pauses before it moves onto the next requested page. Why does this happen?
- While testing the script you may not want to sit and wait for these pauses. What could be done to avoid these pauses during replay?
- Once the replay has executed how could you check that what was replayed matched up with what was captured?
- Using the client tab on the replay differences and looking at the 2nd request, what is the difference in the request?