issues
search
HibaShabbir
/
Sqe-Project
0
stars
0
forks
source link
Unit Tesing
#18
Open
esha361
opened
1 year ago
esha361
commented
1 year ago
Unit testing is a strategy of testing that focuses on separate parts of code.
Automation testing includes any type of testing that can be automated, and apart from unit testing, there are many.
Automated unit testing is a pillar of Test-Driven Development (TDD), which means writing unit tests before the code itself.
The primary focus of unit testing is test an individual unit of system to analyze, detect, and fix the errors.
Furthermore, to perform UI testing, do following steps:
Install python installer on your device.
Install pycharm framework on your computer.
Create a new project on pycharm.
Include python installer(64-bit) package in pycharm.
Click on the project and then go to settings.
Add necessary project interpreters including requests, behave and json ect.
Create a file in your project for unit testing
Right-click a test file or test class in the Project tool window or open it in the editor.
Right-click the background.
From the context menu, select Run
/Run
or Debug.
For a test method, open the class in the editor and right click anywhere in the method.
Run the file and explore results in the test runner
Here are the video links for better understanding:
https://www.youtube.com/watch?v=K4WTqO4-5RM