The next day to learn Python automation with Niuniu teacher

Source: Internet
Author: User
Tags wsdl

The second class, and with Niuniu teacher learned Balabala a lot of knowledge, happy! And have met a few new friends, happy!

This lesson is from reviewing the last time I have forgotten what ~ ~ began, forget it, just start the class directly!!!

The first one, the pressure measurement

Step one, add thread Group on JMeter, HTTP request, write URL, modify protocol, default is HTTP, set number of threads and time of test in thread group

Step two, add multiple presses, all start jmeter-server.bat

Step three, the main control machine settings: JMeter configuration file Jmeter.properties inside Find, remote_hosts=xx, write into the press IP and 1099 port number, there are multiple when separated by commas; then save and restart JMeter

Step four, run

The second one, JMeter runs on Linux

Step 1, you will prepare the test script. JMX Copy to Bin directory, enter CMD directly under bin path

Step 2, run

Jmeter-n-T xx.jmx-l xxxxx.jtl-n without interface,-T + name,-l view results, must end with. JTL

Step 3 To view the results, open the graphical interface of JMeter
Add an aggregated report and import the generated JTL file to

Third, grab the bag, this thing I need to see and write again, this is the first

Fourth, Python,wo notes are written in the project, not to be posted here

The following is a lesson note from the Niuniu teacher:

1. Interface Test
Get Url?xxx=xxx&xx=1
Post
Body
K-v
K-v
Json
Uploading files
Cookies
Header
2, JMeter, postman

1, jmeter Distributed pressure measurement
1, other presses start jmeter-server
2, in the main control machine jmeter configuration file jmeter.properties inside Find, Remote_hosts=xx, write in the press IP can.
3, when the operation to select Remote all start

2. JMeter running on Linux
1, first in the Windows graphical interface script, set the number of concurrent users, execution time, and so on
2. Go to the JMeter Bin directory to run the command
Jmeter-n-t/usr/local/xxx.jmx-l XXX.JTL
-N means that there is no graphical interface to run
-T means to specify which script to run
-L means which file is saved in the run result
3. To view the results, open the graphical interface of JMeter
Add an aggregated report and import the generated JTL file to

3. Grasping bag
1, positioning problems
2. Tampering Request
1, can test other anomalies of the system
Mobile Grab Bag:
1, open Charles, must ensure that the mobile phone and the computer is in a LAN inside
2, mobile phone settings agent
The server writes your computer's IP
Port number, default is 8888
WebService
Soapui


http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl
The interface address of the weather forecast.

1. Sopaui Create a new SOAP project
2. In the WSDL address here, fill in the address of the WSDL interface
3, the left is the requested data, the right is the returned data


4. Python
Write code to help you test.
java, Python, PHP, Ruby
Java
Python
The language of your system development is nothing to do with the language you use for automation.
Python
Network crawler, data analysis, web development, artificial intelligence, automated operation and maintenance, automated testing
, embedded, Hacker
Third-party libraries
scripting language
The language of a single function.
Shell
Computers are only known to be binary
Compiler
Compiled languages
Before running the code, compile it first. And then run
Compile time is relatively long
C, C + +, C #
Chinese version
Interpreted language
Run the time to compile, run a compilation.
Run efficiently without a compiled language fast
Python, Ruby, Shell,
java. class JVM
Please translate
Selection of Python versions
Python2
2020 python2.7
Python3


See Data types
Type (name) int

Break immediately ends the loop, whether or not you have completed the loop
Continue end this cycle and proceed to the next cycle


Homework:
Write a registered program.
Users = []
Input:
Username
passwd
cpasswd

1, the user has not been registered, two times the password input consistent, can be registered successfully
2, account password and can not be entered as empty, if the input is empty, you want to prompt account/password can not be empty
3, if the registration is successful,
Congratulations on the success of XXX registration, today's date is XX
Exit
4. Maximum number of errors 3 times
5, enter a space and enter 10 spaces are empty

The next day to learn Python automation with Niuniu teacher

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.