Turn from: https://zhuanlan.zhihu.com/p/22522986
First of all, we suggest that you take a look at this article, write very good: Automated test: is really silver bullets. Here's the conclusion: Automated testing is not a silver bullet, automated testing (including UI Automation testing) is designed to reduce duplication of effort, increase test coverage, not to
Webdriver Working principle
When you start the script, Webdriver launches a new thread to launch the browser, which has two ways to start the browser: With user information and without user information. After the browser is started, Webdriver will bind the browser to a particular port (at which point the browser can be interpreted as a server, the script is a client), and the browser will do the appropriate processing and return the results to the client.Common Automated
virtual machine. You can set it up in eclipse by selecting the following:The configured virtual machine settings are as follows:Sixth step: Start configuring the relevant development environment in Eclipse, primarily the jar package associated with jdk,selenium,appium-client (the package is downloaded on the Web by Appium's client package called Java-client.jar). Then you can start writing the test code, and here's a brief demonstration of the code i
Last lecture we briefly introduced how to execute JavaScript in the next QTP, in fact, that is, the use of QTP encapsulation method to perform JavaScript, mainly to take care of the novice so a brief introduction of this piece of content, may be for some of the test experts are insignificant, But today this lecture is sure to make your eyes bright, it should be said that this course is the climax of the leading technology lectures. Polish your eyes to
Previous: Maven implementation of Web application integration test Automation-Test automation (WebTest Maven Plugin)Before describing how to use the WebTest plug-in to implement Web integration testing in Maven, here's a legacy issue where the Web app is already deployed in the container in service state when performin
BugThis article describes the HTTP interface Automation test for Jmeter tools!For versatility, take the website as a practical example!Essential Skills: HTTP interface Basics, grasping the package, this article does not do a detailed introduction, will not be the first Baidu to fill!First, we capture the packet that knows about the login:Let's grab it. GetThe corresponding script for Jmeter is as follows:Ge
1, if it is a list page, when to trigger the editing page is how to do it? In fact, I test just click on the first data to edit it! If the page structure is as followsI can write this, here we use the Elementbypartiallinktext, Elementbylinktext is full-text matching, it is obviously not applicable, directly on the codeIt (' #3 write article edit ', function () { return driver . Elementbypartiallinktext (' edit '). click ()
=driver.find_element_by_name (' NR ') #设置每页搜索结果为100条, first find id= Nr label, and then find the option tag under the Id=nr tabA Select button with value equal to 100 m.find_element_by_xpath ("//option[@value = ' 100 ' ]. Click () time.sleep (2) #保存设置的信息 driver.find_element_by_xpath ("//input[@ Value= ' Save Settings ']. Click () time.sleep (2) n=driver.switch_to_alert () n.accept () defteardown (self): Self.driver.quit () self.assertequal ([],self.verificationerrors) ' teardown The method
.
Swipe
Analog phone slide, swipe from one point to another, the keyword receives 5 parameters [start_x | start_y | end_x | end_y | duration=1000], when sliding, the position of the point is in the form of coordinates.
Tap
This keyword simulates clicking on a screen element and receiving a parameter [locator]
Zoom
This keyword is used to magnify an element and receive three parameters [Locator | percent=200% | steps=1], the first parameter
Reprint: HTTP://WWW.CNBLOGS.COM/CHENGTCH/P/6576117.HTML1 profileData-driven testing is the process of separating test logic from test data, saving test data in the form of Excel tables, and reading and executing tests using test scripts.2 data-driven and JMeter interface testingWe have briefly introduced the interface
The best way to test your software is more than one. In addition to manual testing, depending on your development environment, you can use the Business test automation framework, open source and internal test automation frameworks, and custom
Interface Automation Test –java+testng testing Restful Web ServiceKeywords: rest-based Web services, interface Automation testing, data-driven testing, testing restful WEB service, data separation, java+maven+testngThis article mainly describes how to use Java for RESTful Web service to do interface Automation testing
negative numbers, testing, we have to ensure that the server There are 10,000 ways to bypass front-end validation. From a security point of view, the user password, other user privacy information transmission needs to be encrypted. When the app's code is not updated, and the server-side code is updated, it is possible to quickly determine whether the app's functionality is affected by automating the testing of the interface directly. Many systems have no interface, only provide interfac
this week began the automated testing of mobile input method Simeiji, while beginning to touch mobile browser automation testing. The next step is to do a monographic study of the Android automated test tools and methods. The first article introduces the Monkey Test tool. 1 Automation
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
In the previous series, I introduced Java for Android Automation test (1) How to install and uninstall an application (Java),Android Automation Test (2) Find objects by ID (Java),and then introduce the Python language for Android Automated Testing (3) Finds object touchtype (python) by ID. Also said that follow-up to w
in scripting languages. When automating tests, you should choose the appropriate script development method based on the actual test requirements and conditions. Several development methods are generally integrated.
Automated test tools
In practical work, regression testing needs to be repeated, and when the tester completes the same test over and over again, the
Interface testing in a number of ways, such as can be used tools (Jmeter,postman), or can write their own code for interface testing, the use of tools relatively simple, the focus is to understand the project interface protocol is what, and then targeted to choose, You need to develop your own tools even when they are not well suited to your project.In the early days of our project, we used JMeter for interface testing, when we felt that the tool was easy to use, that the team members had low le
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.