Environment installation for HttpRunner automated testing

Environment installation: (It is recommended to install version 2.5.7, because it is relatively stable)

Method 1. The stable version of HttpRunner is hosted on PyPI and can be installed using pip. Enter in the dos command prompt window: pip install httprunner==2.5.7

Method 2. Download HttpRunner in pycharm and select version 2.5.7

pycharm download steps: File——Settings——Python Interpreter——click the plus sign——enter httprunner for matching—select version number 2.5.7——click Install Package; as shown below

HttpRunner running steps:

1. Open pycharm, create a new project, and customize the project name (Note: use pycharm to edit the yml file)

2. Create a new testcases folder under the project

3. Create and edit the test scenario file with the .yml suffix under the testcases folder

4. Click the Terminal below in pycharm, enter the command httprunner yml test script path execution

Practical case

Optical theory is useless, you have to learn to follow along, and you have to do it yourself, so that you can apply what you have learned to practice. At this time, you can learn from some actual combat cases.

If it is helpful to you, please like and collect it to give the author an encouragement. It is also convenient for you to quickly find it next time.

If you don’t understand, please consult the small card below. The blogger also hopes to learn and progress with like-minded testers

At the right age, choose the right position, and try to give full play to your own advantages.

My road of automated test development is inseparable from the plan of each stage along the way, because I like planning and summarizing,

Test and develop video tutorials, study notes and receive portals! ! !

Guess you like

Origin blog.csdn.net/Liuyanan990830/article/details/131483514