Lesson 8 Dividing Tests into Multiple Actions
Dividing Tests into Multiple Actions
Actions divide your test into logical sections. When you create a new test, it
contains a call to one action. By dividing your tests into calls to multiple
actions, you can design more modular and efficient tests.
In this lesson you will learn about:
Working with Multiple Actions
If you examine one of the tests you created in the previous lessons, you will
see that it can be divided into several distinct processes:
You logged into the Mercury Tours site.
You submitted a flight order.
You logged out.
Assume that you wanted to run your test for five different flight orders. As
we saw in Lesson 5, "Parameterizing Tests", you could parameterize your test
so that it would run the test five times using five different sets of data. You
can also organize your test so that only the second procedure runs five
times, simulating a single user logging in, ordering five flights, and logging
out. You do this by dividing your test into calls to different actions.