An article to understand unittest unit testing framework
For Python 2.1 and later versions, unittest is put into the python development package as a standard module.
01 use unittest to write test cases [at the end of the paper, a learning resource for automated testing is prepared for free sharing]
Rules:
import unittestTo create a test class, you must inherit unittest Testcase classCreate a test ...
Posted by datoshway on Thu, 24 Feb 2022 08:20:05 +0100
web automation notes 13: parameterization, skipping use cases and generating HTML test reports
catalogue
Parameterization
Skip use case
Generate HTML test report (Master)
Parameterization
1. Why parameterization Solve the problem of redundant code
2. What is parameterization Description: dynamically obtain parameters according to requirements
3. Parametric application scenario Scenario: solve the problem of the same busines ...
Posted by posidon on Tue, 22 Feb 2022 07:00:26 +0100
Automated test and framework (selenium+python) unittest structure and HTML test report
PART 3: write test units using Unittest (WebDriver + unittest)
1. Unittest
unittest unit test framework:
Commonly known as PyUnit, it is inspired by JUnit, which is widely used in Java program development; We can use unittest to create a comprehensive test suite for any project;
unittest enables us to create test cases, test ...
Posted by ashebrian on Mon, 20 Dec 2021 19:47:00 +0100
[python] take the blog Garden Network as an example to realize the separation of program and data by using ini configuration file in learning automation test
preface
Where should the page positioning elements used in UI automation test be stored? What I want to say is that if you use the PO design pattern to design test cases, you can store the positioning elements in each page or separately in a directory. For new keys, different pages correspond to files with different names to store the positioni ...
Posted by johnkperks on Mon, 01 Nov 2021 03:57:47 +0100