Business process:1. Provide written test cases, read content2. Then automatically adjust the interface according to the use case content in Excel, determine whether the return value in the expected result is consistent with the value in the return message, generate a test report, send an email to informImplementation steps:1. Read Excel and save the contents of the test
. Status Code:The status code consists of three digits, and the first number defines the category of the response, divided into five categories:1XX: Indication information--Indicates that the request has been received and continues processing2XX: Success-Indicates that the request has been successfully received, understood, accepted3XX: Redirect--further action is required to complete the request4XX: Client Error--Request syntax error or request not implemented5XX: Server-side error-the server f
. Status Code:The status code consists of three digits, and the first number defines the category of the response, divided into five categories:1XX: Indication information--Indicates that the request has been received and continues processing2XX: Success-Indicates that the request has been successfully received, understood, accepted3XX: Redirect--further action is required to complete the request4XX: Client Error--Request syntax error or request not implemented5XX: Server-side error-the server f
# Classes and methodsClass Count (): def __init__ (self, AAA, BBB): # Initialization # Public parameters can be put in Print ("Init content is executed when instantiated") SELF.A = AAA self.b = BBB # Add Self is a global variable, no self is a local variable def ABB (self): # method called inside the # class, not called function return SELF.A + self.b def ABB (self, A, b): # method inside the # class, not called function Return SELF
First install the environment you can refer to this article https://www.zhihu.com/question/30496889I use Chrome to browse, download Webdriver's address is http://chromedriver.storage.googleapis.com/index.html,Click to download the historical version of Chrome: https://www.chromedownloads.net/Note that the downloaded version must correspond to its own version of Chrome, or the error will be as follows: version support for Chromedriver can be viewed from http://npm.taobao.org/mirrors/chromedriver/
In the Android application automation process, you'll see a scene that needs to be long pressed and dragged, such as a UC browser, long pressed on a navigation icon to make it removable, and then move it to another place, swapping it with other navigation icons, with a drag in the Robotium (float FromX, float ToX, float fromY, float toy,int stepcount) method, but because the drag does not have a long press this step, therefore cannot make the applicat
The Urllib.request module is python3 for handling URLs.1. First Import:From Urllib Import Request2. Construct the URL, construct the URL's headers information and send the reference "request." Request "----GET request with no parameters "slightly"----GET request with parameters "with header, with data, with header and data, with pre-issued host"Import: from Urllib Import parseImport JSONurl = r "xxxxx" NOTE: If you configure host, the host domain name in the address will be rewritten as the host
Interface 2: LoginBrief Description: Login interfaceRequest Url:http://api.nnzhp.cn/api/user/loginRequest Method: PostParameters
Name of parameter
Have to
Type
Description
Username
Is
String
User name
passwd
Is
String
Password
1, click Newtab, Request mode select Post, address bar input Http://api.nnzhp.cn/api/user/login2, click Body, enter the corresponding parameter (parameter is key-value, in
Windows underI. Python download installation configuration environment variables1. python:https://www.python.org/downloads/2. Install Python all you need to do is download the Python-x.x.x.msi file and click on the "Next" button3. After the installation is complete, you need to set the Python environment variable. Right-click Computer, properties, advanced environment variable, modify the system variable path, add the Python installation address, this example uses the D:\python, need to install
command "Easy_install pip", wait for the installation to complete 5. Install the Python-based Selenium installation package, cmd window into the Python installation directory to execute the command "Pip install Selenium", waiting for the installation to complete; 6. Download Firefox plugin, see annex 2Selenium_python_firefox.rarInput code: From selenium import webdriverdriver=webdriver. Chrome () driver.get ("http://www.baidu.com") pop-up browser, and enter the Baidu interface, to prove the suc
) Directory There is a Readme.txt writing a line of birds, roughly meaning that this folder is the location of the external jar file;It is recommended that all external files be placed under this folder, like. Class/.groovy as much as possible into the jar package placed in the Ext folder; This recommendation is based on the following reasons:1. Some installed Soapui Bin directory does not have scripts folder (Linux installation or free version soapui), of course, you have to manually create the
Establish a continuous processSpecify the time and cost of Parasoft to reduce PCI DSS compliance."Click to view"cyber attacks opportunities accompanying cloud technologyLearning: 1) New cloud services technology, software infrastructure will be more vulnerable. 2) not meet the high cost of safety standards. 3) The most effective development of test solutions to improve application security."Click to view"You can also click here to see more parasoft r
operation interface to manipulate page elements.On the other hand, Webdriver can interact with the system bottom and send the action signal directly. such as what keys to press, where to move the mouse and so on. Visible selenium2.0 is much more powerful than 1.0. Here is a brief talk about Webdriver:Webdriver My understanding:He's kind of an API, a specification.A variety of browser vendors refer to this specification to give the selenium the interface to call their own browser.Then the vario
can be provided by the selenium of the actions class, it can simulate the mouse and keyboard some of the operation, such as right mouse button, left button, move the mouse and other operations. For these operations, use the Perform () method for execution.Copy Codeprivate static void actionsTest(WebDriver driver) throws InterruptedException { // 设置等待页面完全加载的时间是10秒,如果在10秒内加载完毕,剩余时间不在等待 driver.manage().timeouts().pageLoadTimeout(10, TimeUnit.SECONDS); driver.get("https://www.baidu.
In the past few months, has been engaged in interface testing. Use the Jmeter+jenkins+gitlab tool chain. In fact, there is no technical problem, just in the promotion, the value is not worth our effort to write, to maintain a large number of interface test cases???Last night on-line, today's online affairs, let me completely clear, must be engaged, and quickly and comprehensively spread out.The thing is: this iteration of a small optimization point (t
"). Wait (timeout=5, raise_error=False): Print' Enter password ')E = S (classname="Securetextfield"). Get (timeout=5, raise_error=False) E.set_text ("password")Print' click to login ')E = S (classname=' Button ', name=u ' login '). Get (timeout=5, raise_error=False) E.tap ()Else:Print' No need to enter a password ')elif S (classname=' Button ', name=u ' re-download '). Wait (timeout=5, raise_error=False): Print' Click to re-download ')E = S (classname=' Button ', name=u ' re-download '). G
Python in the HTTP protocol interface related libraries have URLLIB,URLLIB2 and Reqeusts library, which Reqeusts library for the most convenient, so I also mainly use the requests library to do the interface test HTTP protocol. Let's start by looking at what environment information is needed:First, install PythonThe Mac comes with Python installed, and that's not much to say.Second, install the virtual environment:We can install multiple versions of P
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.