- TurtleRock
- Posts : 8
Join date : 2012-05-16
Export IDE code to JUNIT4, edit and import back to IDE
Wed May 16, 2012 10:45 pm
Is it possible to export recorded code from IDE to JUNIT, do some modification eg. loop, or conditional statements, and import it back to IDE.
I am not able to find any loop or conditional statement command, how can we use it.
Regards,
TurtleRock
I am not able to find any loop or conditional statement command, how can we use it.
Regards,
TurtleRock
- ccoxMaster
- Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO
Re: Export IDE code to JUNIT4, edit and import back to IDE
Thu May 17, 2012 12:19 am
This is not possible. You have to use the gotoIf function/while loop conditions from the user-extension.js file. These are neither backwards nor forward compatible with JUnit4/Selenium IDE as it is flow control specific to each.
- TurtleRock
- Posts : 8
Join date : 2012-05-16
Re: Export IDE code to JUNIT4, edit and import back to IDE
Mon May 21, 2012 10:44 pm
Thanks ccox. I want to learn selenium, just not sure whether i should start with selenium IDE or WebDriver.
Is it like IDE and WebDriver are totally different tools, or they are for different purpose ?
Is it like IDE and WebDriver are totally different tools, or they are for different purpose ?
- ccoxMaster
- Posts : 205
Join date : 2012-01-06
Age : 39
Location : Denver, CO
Re: Export IDE code to JUNIT4, edit and import back to IDE
Mon May 21, 2012 10:56 pm
They are very different. IDE is a great place to start. You can record scripts in IDE and convert them into the language of your choice, then use them with Webdriver. Unfortunately I am not too familiar with Webdriver yet. I would suggest starting with IDE to get an understanding and go from there.
- TurtleRock
- Posts : 8
Join date : 2012-05-16
Re: Export IDE code to JUNIT4, edit and import back to IDE
Mon May 21, 2012 10:58 pm
Thank a lot ccox
- Export Test cases as Java Junit4 - Web Dirver
- Error message being displayed while running a code in Java (JUnit4) in selenium Rc .
- How to import python code in to selenium
- How to import a python code in Selenium IDE, without error message?
- For every change in the code of selenium RC, Is that necesary to compile the selenium RC code every time.
Permissions in this forum:
You cannot reply to topics in this forum