Share
Go down
TurtleRock
Posts : 8
Join date : 2012-05-16

Export IDE code to JUNIT4, edit and import back to IDE

on 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
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 32
Location : Denver, CO

Re: Export IDE code to JUNIT4, edit and import back to IDE

on 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

on 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 ?
ccox
Master
Master
Posts : 205
Join date : 2012-01-06
Age : 32
Location : Denver, CO

Re: Export IDE code to JUNIT4, edit and import back to IDE

on 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

on Mon May 21, 2012 10:58 pm
Thank a lot ccox Smile
Sponsored content

Re: Export IDE code to JUNIT4, edit and import back to IDE

Back to top
Permissions in this forum:
You cannot reply to topics in this forum