Hosted by Dailymotion. For legal issues report at the Copyright Center, report us on DMC, or use the Instant Removal tool.
Selenium 2 and TestNG
3 Views • Oct 19, 2011
Description
Video details:
1. in this video , we are going to record a Selenium IDE script and change it into JAVA code and then run on the TestNG Framework
2. OPen up Selenium IDE
3. click on Red Record BUtton to record a script
4. navigate to foundation.time2test.co.uk
5. Login using admin/time4test
6. Click on "add new"
7. Enter Title for post and click publish
8. Save the test case as "quicktest.html"
9. Now convert the .html into JAVA format
10. in Selenium IDE , goto File->Export Test Case As...->TestNG (remote Control)
11. Save the file as "quictest.java"
12. We have already created a Project Directory based on TestNG framework
D:\TestNGProject\
build\
config\
Single.xml - contains xml entry to quicktest.java
lib\
junit.jar
selenium jar files
selenium-java-client-driver
selenium-server
testng.jar
testng-5.5-jdk15
selenium-grid-tools.jar
test\
Quicktest.java - pre-created test framework
build properties file - contains ws.home
build.xml
13. Now copy the test method in the recorded/converted script into \test\quicktest.java
14. now open single.xml and ensure that class name and method name as per the java file
15. Now open build.xml and match up the target name
16. Start the selenium server
17. open up new command prompt
18. cd d:\TestNgProject\
19. enter command >ant single
20. notice the selenium script execute
21. Goto Test-output directory
22. open up the results file
23. Green indicates that the script ran successfully.
Keywords & Tags
More from User
selenium 2 with Eclipse and Java
vipingupta
Selenium 2 and Junit example
vipingupta
Hudson and Selenium Workshop Hosted by time2test - UK
vipingupta
Selenium 2 and TestNG
vipingupta
Selenium 2 Webdriver Example
vipingupta
Jenkins Running a Selenium Job
vipingupta
Related Videos
Introduction to Quality Assurance Software Testing by MindsMapped
MindsMapped Consulting
Software Testing and Quality Assurance - The Ultimate Necessity of Modern Day Business Applications
Worldwidetrafficnet
Read Testing in Scrum A Guide for Software Quality Assurance in the Agile World Rocky Nook
Calpfh7243
[PDF Download] Software Testing and Quality Assurance: Theory and Practice [Read] Online
Asanink1
[PDF] Software Testing Quality Assurance: From Traditional to Cloud Computing: Learn Software
Clucreaw
Software Testing- Quality Control And Quality Assurance Tutorial
Sneha Singh