Re: Selenium IDE: call a test case from another one

2,203 views
Skip to first unread message

gilbertf

unread,
Dec 20, 2012, 9:02:41 AM12/20/12
to seleniu...@googlegroups.com
I'm also interested in knowing how to do this!  

I resorted to copy-and-pasting the lines in all my test cases, which is no fun when you want to change something in the common parts.

On Monday, December 17, 2012 6:32:40 AM UTC-5, seli wrote:
Hy,

is it possible to call a test case from another one, because I have to reuse the steps of the test case Login.html and Logout.html in a lot of other test cases

Example: AddToWishlist.html

....
Command: run Testcase
Target: Login.html
...
Do Something
....
Command: run Testcase
Target. Logout.html

thanks and best regards

François-Léonard Gilbert

unread,
Dec 28, 2012, 1:23:16 PM12/28/12
to seleniu...@googlegroups.com

It could be done this way but the bookkeeping and interpretation of the results would suffer.  I had a 150-test suite, each of which went through the same 20 steps between the significant inputs and the results.
Anyway, it worked so the point is mostly academic.

Le 27 déc. 2012 01:26, "SeleniumTester" <pann...@gmail.com> a écrit :
Hi,
  You can implement testsuite where one testcase would be reuse for other tests.
like: testA is repeated steps
        testB is diff
So create a testsuite by combination of testA & testB and run it.
 
Earlier we faced the same issue but by using testsuite we get rid of this issue.
 
Hope this work for you.
 
Regards
Anita

On Monday, December 17, 2012 5:02:40 PM UTC+5:30, seli wrote:
Hy,

is it possible to call a test case from another one, because I have to reuse the steps of the test case Login.html and Logout.html in a lot of other test cases

Example: AddToWishlist.html

....
Command: run Testcase
Target: Login.html
...
Do Something
....
Command: run Testcase
Target. Logout.html

thanks and best regards

--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/Ab45fajPmFQJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Peter Kehl

unread,
Jan 15, 2015, 1:33:28 AM1/15/15
to seleniu...@googlegroups.com
See https://code.google.com/p/selite/wiki/SelBlocksGlobal. It enables functions, loops, and other code control. It's similar to SelBlocks, but with SelBlocks Global you can call functions across test cases.

There are other related add-ons, which help Selenium IDE tests to be packaged, reusable and maintainable. See SeLite – https://code.google.com/p/selite/wiki/ProjectHome. It enables
– functions shared across test cases, loops, and other code control
– enhanced expressive syntax
– test database (isolated from the application database)
– automatic detection of webserver errors/warnings
– custom fine-grain configuration schemas that support team work.
Reply all
Reply to author
Forward
0 new messages