History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: SEL-122
Type: New Feature New Feature
Status: Open Open
Priority: Major Major
Assignee: Unassigned
Reporter: alex
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Selenium

chain test - reusable tests like functions

Created: 13/Jun/05 05:02 AM   Updated: 04/Dec/07 01:16 PM
Component/s: TestRunner GUI/Suite Loader
Affects Version/s: 0.7.0
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Environment: any


 Description  « Hide
add the possibility to call another file in a test file.
The syntax could be a simple url in the first column (like in the testSuite.html).
Combining such a possibility with storing values it permits to write parameter driven pieces of tests.

for example :
in init.html
----------------------------------------------------------+
init DataBase |
----------------------------------------------------------+
open | /mydatabaseLoader?load=${piece} | |
----------------------------------------------------------+
assertValue | result |succesfull |
----------------------------------------------------------+

then in test.html
----------------------------------------------------------+
Test my App
----------------------------------------------------------+
storeValue |piece |doc5.txt |
----------------------------------------------------------+
./init.html | | |
----------------------------------------------------------+
open |myappUrl | |
----------------------------------------------------------+
verifyTitle |the test App | |
----------------------------------------------------------+
....

the ./init.html act as if the lines of init.html where included (or better the link is followed and the test run).
It can be really of interest to facilitate writing tests.


 All   Comments   Work Log   Change History      Sort Order:
Mike Williams - 23/Jun/05 05:14 PM

dhwang - 04/Dec/07 01:16 PM
The include command extension accomplishes this already. Maybe this should be closed.