In Selenium IDE:
I have created one Test Suite : TS1.html and There are two test cases in it:
Test1.html and
Test2.html
So What are the steps to execute this TS1.html test suite in Selenium RC (Eclipse)
In Selenium IDE:
I have created one Test Suite : TS1.html and There are two test cases in it:
Test1.html and
Test2.html
So What are the steps to execute this TS1.html test suite in Selenium RC (Eclipse)
Should do the magic :)
For executing the .html file using Selenium server without converting to any other language (such as Java, C#, Ruby, Python, Perl, PHP etc.):
java -jar selenium-server.jar -port 4546 -htmlSuite *firefox "http://www.google.com" "C:\SeleniumTest\TS1.html" "C:\result.html"
Tests will be executed in Firefox and Test Result will be generated as result.html in C drive.
As Pavel said you first go to the Options in Selenium IDE and convert the recorded code into the JUnit 4 model. Then copy and paste the code into the Eclipse IDE.
sample JUnit class with two testcase:
public class JUnitSample{
@BeforeClass
public static void setup(){
1)start the server
2)Launch the browser
}
@Test
public void testTestcaseName01(){
paste your first test case
}
@Test
public void testTestcaseName02(){
paste your second test case
}
@AfterClass
public static void setup(){
1)close the browser.
2)Stop the server..
}
}
One more thing the code which was converted by IDE is not sufficient to run from the Eclipse IDE. So, you have to modify the code to run from eclipse.