Software Testing Tools

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

SOFTWARE TESTING TOOLS

PYTEST
Pytest is a python based testing framework, which is used to write and execute test codes. In the
present days of REST services, pytest is mainly used for API testing even though we can use pytest to
write simple to complex tests, i.e., we can write codes to test API, database, UI, etc.
STEP 1: INSTALL PYTEST

STEP 2: CREATE A PYTHON FILE

The file should have ‘test’ in its naming.


STEP 3: TYPE THE COMMAND ‘PYTEST’
Now after creating another file, test is done for both files.

If there is an syntax error then the following output is shown


Once all the errors have been corrected, the following output is shown
UNITTEST FRAMEWORK/PACKAGE IN PYTHON
The unittest unit testing framework was originally inspired by JUnit and has a similar flavor as major
unit testing frameworks in other languages. It supports test automation, sharing of setup and
shutdown code for tests, aggregation of tests into collections, and independence of the tests from the
reporting framework.

 STEP 1: Import unittest


 STEP 2: Define the class/code
 STEP 3: Create testcase functions
 STEP 4: Call the function
 STEP 5: Run the program

SRISHTI GULECHA R
2020115094

You might also like