Selenium RC (Java) Configuration:
Steps for Configuration:
1. Before Configure the Selenium RC we can verify Downloaded software’s having the all the related software’s or not. To Install Selenium RC verify below Software’s
· Selenium RC Jar Files Download from www.seleniumhq.org/download/
· JDK (Java Development kit) or Net Beans or JRE
· Eclipse SDK
2. Install JDK or JRE in your pc for before Run Eclipse.
3. Copy the Eclipse from selenium dump or downloaded files from Net into a Desired folder like (in D: / or E :/) in your pc.
4. Create a folder with the name selenium_framework.
5. Create a sub folder with the name “Lib” Under selenium_framework folder.
6. Copy the Selenium jar files from Lib at selenium dump or from downloaded area and paste these Selenium jar files into Lib under Selenium_ Framework.
7. Copy the JDK 1.5.0.11 file from the below path c:/program files/java and Paste it in Selenium_framework.
8. Open the Eclipse in Desired folder in that Click symbol Eclipse. Exe for installing source file for Selenium RC and click on “Ok” at Eclipse work launcher. Remember work location.
The above showing path is workspace for Selenium RC, where the Test script is saved.
9. Click on Workbench it will allow you to move into the Eclipse.
10. Go to File à New àSelect java project.
11. Give the project Name (selenium_ automation like…) in Project Name text field.
12. Click on Configure JRE and Click on Add button and click on Next Button.
13. Select the JDK or JRE from the Selenium_framework folder by using directory Option.
14. Click on finish and click on ok and click ok again.
15. Click on Project Name (selenium_automation), right click on the JRE System Library, Click on Build path and select configure build path.
16. Click on Add External Jars and select Selenium jar files from the selenium_framework folder and click on “OK”.
17. Go to Run in Java Eclipse SDK, click on External Tools à Select External Tools configuration.
18. Double click on the Program which is available at Left side. Give the Server name as Selenium_server Like…. Under Name field.
19. Location Field: Click on the Browse File system Against Location and Select Java.exe from the below path Folder name/Selenium_framework/JDK or JRE/bin/java.exe
20. Working Directory Field: Click on the Browse File system and Select the Lib folder from under selenium_framework folder. Selenium_framework/Lib
21. Give the arguments as in argument field like below. -jar selenium-server-standalone-version number.jar (Default) (or)
-jar selenium-server-standalone-version number.jar -port1234 (If already port number available in your system).
22. Click Run server icon in Java –Project Name/src. Check application working correctly or not in Console. (How to know without any error message and showing given port number or default port number is 4444).
23. Now you can create the classes from New à Class and select Public Static void main(string [] args) and Click OK.
24. Now you can develop Script .
25. You Can Create All Test Scripts or Some important scripts as one package for ex... Admin Suite, Staff Suite likes ….Under Your Project Name. To Create Package Right Click at Your Project Name and New à Package. In this Package You can put Suitable scripts.
25. You Can Create All Test Scripts or Some important scripts as one package for ex... Admin Suite, Staff Suite likes ….Under Your Project Name. To Create Package Right Click at Your Project Name and New à Package. In this Package You can put Suitable scripts.
No comments:
Post a Comment