Multi step test case
I am having problem writing a multi step test case i.e. perform multiple actions within a test script
1 go to home page (go_to url)
2 assert title
3 go to another page (go_to url)
My aim is to be able to run all the steps within the test case even if it fails. This used to be possible with verify command Selenium RC. Below are 2 sample scripts trying to perform this
richt.py
#(the test script runs through all the steps)
from sst.actions import *
go_to('http://
assert_
go_to('http://
falsch.py
#(the test script stops as it fails at the step 2)
from sst.actions import *
go_to('http://
assert_
go_to('http://
The problem i am having is that if the script fails at step 2 it does not continue with step 3. I have tried using the if condition but was not able to get it to work.As there is no verify command how can i use the assert command and still be able to run the whole steps.
Thanks in advance.
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Ayo for more information if necessary.