Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
7.8.2. Testing Frameworks
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
4 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is JUnit used for?
Hint
Think about Java and testing.
- 2.
What does pytest allow you to do?
Hint
It’s an alternative to unittest for Python.
- 3.
What testing framework is primarily used for unit testing in Java?
- JUnit
- pytest
- Jest
Hint
Consider the name and its association with Java.
- 4.
True or False: Postman is used primarily for GUI applications testing.
- True
- False
Hint
Think about what Postman specializes in.
- 5.
Design a test case in JUnit that verifies the correctness of a method that calculates the area of a rectangle.
Hint
Consider how you’d set up the test with assertions.
- 6.
Using Selenium, draft an automation script that logs into a website and checks for specific text on the landing page.
Hint
Think about the steps a user takes to log in.
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting