HibaShabbir / Sqe-Project

0 stars 0 forks source link

Unit Tesing #18

Open esha361 opened 1 year ago

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