Font Size: a A A

Design And Implementation Automation Scripts Based On TestNG

Posted on:2015-12-25Degree:MasterType:Thesis
Country:ChinaCandidate:J J LiFull Text:PDF
GTID:2308330461471862Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Software testing has become more and more important in present days. It is the only way to keep the quality of software, a large number of test cases and the methods emerge as the times demand. Workload of test engineer has been growing fast. in order to make the quality of software,they should work round the clock.how to deal with this problem without high cost on manpower and money, but can improve the quality of software has become popular issue, in order to alleviate the problem of software testing faced today.automation testing comes up.automation testing technology is that use computer program to substitute human work. it can simulation engineer to testing software.Automation testing can full use of the time and continue to work in the rest of time of test engineer. When the engineers do some repetitive testing, automation script will instead them. Such as upgrade testing.automation script saving the cost of human resources and capital spend. It can make testing process very convenient. Automation testing has been adopted by growing number of software companies. It is as an important part of software testing.many companies focus on their automation coverage. Some automation tools and frameworks used increase common.How to design automation test framework and select the testing tool is the main factor to ensure script efficiency. In this paper, the website system, for example, we choose TestNG framework and selenium framework for testing.TestNG use hierarchical testing modes, script code and its parameters are separated. The code of website will not mix with testing code, so the structure is very clear. The script does not affect the operation of the website for TestNG Annotation of TestNG management and operation of the cases, selenium framework is suitable for a Website. It can find Element location on each page. It can operate web page like human action. Get feedback information from page. They can use assert to check it right or not. At the end of testing it will generate a report to show the result. TestNG XML file called by the test script, it consists of various test class. Each of test class corresponds to their xml file. This kind of constituted is very flexible, because you can determine which case will run in script. You can re-run the fail case and also specify a test case. After case design is complete and run stably, the application script can call by bat file. It can launch script without eclipse. So that automation testing can be run on any computer which has Java runtime environment.Do automation testing with WEB system and design the whole automation test case for it. in order to complete the testing. The WEB system is travel websites, it run with browser, use VS2008 and chose C# language and SQLServer database to deal with the basic function. The script use TestNG test framework, selenium WEB testing framework and eclipse programming environment, chose Java language to make Acceptance testing script. Simulated user operated some action on web page. This script will keep the parameter form script code to ensure the stable of the script. Make the script more efficiency, the report is more accurate and clearly.
Keywords/Search Tags:software testing, automation, TestNG, selenium, automation script
PDF Full Text Request
Related items