James McCaffrey
Download the code for this article: TestRun0501.exe (131KB)
Content of this page
Applications to be tested
Test automation scripts
Operating the application to be tested
Checking application state
Discuss
Manual user interface Testing is one of the most basic types of software testing that most software engineers have used for the first time. Paradoxically, automated user interface test
software processes, many organizations tend to use agile development theory, and automated testing is a must. The so-called automated testing is the implementation of automated testing tools or a programming language to write programs, control the various modules in the software under test, simulate manual test steps, complete the test.
interface test scripts, storage, scheduling center, commonly used tools such as Maven, Ant, or you can use the Unit test framework in the programming language to provide the functionality, choose their own applicable;Run the platform: usually with the help of tools to run these test scripts, the tool can use the above
On the Internet to read a lot of Sonarqube tutorials, first of all to explain the relationship between the two Sonarqube is a(Code Quality Management platform) Open source platform, used to manage the quality of Java source code, popular point of view that the person is actually similar to a server, like Tomcat or JBoss. With the server this empty shelf must not be detected code, And Sonar-runner is equivalent to a scanning code under the platform of the too
ArticleDirectory
Goals of Automated Testing
Some people may think unit testing is dispensable, because they feel that they need to put too much effort and customers do not need it. This involves the issue of ROI. In fact, the investment used for testing often gains more returns. It reduces the number of bugs and debugging.CodeThe time when the bug was found. See the time chart for testing and development efforts with an effective investment in automated testing:
In the earl
Reproduced from: http://www.cnblogs.com/findyou/p/5388853.html description, this article for the study reference, will be deleted after a period of time. ObjectiveAfter the first two basic knowledge, this article mainly explains the National Weather Control Interface Automation test (GET request and result assertion), in order to achieve the goal of automated testing, in addition to some of the first two of
"Turn from" http://www.cnblogs.com/findyou/p/5388853.htmlDirectory3.1 HTTP interface (GET) test instance
3.1.1 To be tested Interface Description 3.1.2 New Java Project
1. Project Catalog description 2. Common.java Source code 3.getcityweathe.java source code 4.urlconnection.java
Source code 3.1.3 Write test Case
1. Test Case 2. Simplified u
Complaints about UI AutomationI've heard a lot of people say, "UI Automation is very unstable, the need to change, the interface once again, all costs." I believe that the people who have done it may agree. Since the problem has always existed, why hasn't anyone carefully analyzed why?My boss George has given an example: whenever demand changes, development does not jump, instead the test jumps. Then consta
One of the interface Automation tests using jmeter+ant (Data driven) Describes how to use a CSV file to manage interfaces in bulkThis article then describes how to use Apache-ant to execute test Cases and generate HTML format test reports① downloading and installing apache-ant-1.9.9, configuring environment variablesVerify installation success as follows② after
under the Scripts folder2. Input directive:Pip.exe Install selenium If the progress bar is shown to 100%, it is already installed (if the abnormal cause is exited and you know the progress is up to 100%)3. Selenium can support a lot of browsers, but to install the corresponding browser driver , such as My computer's browser is v56, the corresponding download chromedriver version v2.29(Chrome is used in the notes, and other browsers are similar, so you can check it yourself)1.3 What is Webdriver
The day before yesterday, the company arranged for me to give my colleagues a unit test and test automation training.It took an hour and a half before and after the event, and the response was good.In fact, unit testing is a relatively complex but important issue, but it is often difficult to implement in real projects.It is often synchronized with the refector,
The Click a point keyword is used to simulate clicking a dot on the app interface, which receives two three parameters [x=0 | y=0 | duration=100],x and y represent the coordinate position of the point, and duration represents the duration of the click. If these three parameters are not passed in, the default x=0,y=0,duration=100 will be divided into tables.Example 1: This is still done using the app interface above, using the click a point keyword to simulate clicking on a button and entering th
--6th UnitTest Module (ii)Interface Test Basics--6th UnitTest Module (iii)These are the methods of batch execution. The above we talk about this is a very low example, you can just look at the line, and then I will write a concrete selenium framework, we directly refer to it. If you are interested, you need to review this knowledge:Interface Test Basics--First article smtplib sending text messagesInterface
test case and generate report
2. The following reports are generated after the operation:3. The run_all_case.py code is as follows:#-*-coding:utf-8-*-ImportUnitTestImportOSImport TimeImportHtmltestrunner#use case PathCase_path =Os.path.join (OS.GETCWD ())#Report Storage PathReport_path = Os.path.join (OS.GETCWD (),' Report')PrintReport_pathdefall_case (): Discover= Unittest.defaultTestLoader.discover (Case_path, pattern="
case and generate report
2. The following reports are generated after the operation:3. The run_all_case.py code is as follows:#-*-Coding:utf-8-*-import unittestimport osimport timeimport htmltestrunner# use case Path Case_path = Os.path.join (OS.GETCWD () # reporting Storage Path Report_path = Os.path.join (OS.GETCWD (), ' report ') print Report_pathdef all_case (): discover = Unittest.defaultTestLoader.discover (Case_path, pattern= "test*.py
case and generate report
2. The following reports are generated after the operation:3. The run_all_case.py code is as follows:#-*-Coding:utf-8-*-import unittestimport osimport timeimport htmltestrunner# use case Path Case_path = Os.path.join (OS.GETCWD () # reporting Storage Path Report_path = Os.path.join (OS.GETCWD (), ' report ') print Report_pathdef all_case (): discover = Unittest.defaultTestLoader.discover (Case_path, pattern= "test*.py
in the introduction and application of automated testing, we understand some basic principles:
-Choose good tools, the most popular tools may not be suitable for their own, the real tool is the best for their own. such as robot is not necessarily the best, but its multi-machine interactive collaboration capability is not the other tool
-Select different test tool
= "hao123_上网从这里开始"if Second_Title == Expect_Title: print(True)else: print(False)driver.quit()
Selenium through Driver.title Check the title of the page;
Determine if the actual page title value is the same as expected;
The results of the test are thus obtained.
If you want the system to learn selenium, you can pass the way oh ...The promotion of my blog column, currently selected a topic "from the zero-learning selenium au
Everyone has understood and recognized the role of the testing tool. However, many software companies that have introduced the automated testing tool have not been able to make the test automation play its due role, the main reasons are as follows:
1.Incorrect ideas or unrealistic expectations
There is no correct ide
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.