← Quiz: Selenium Setup: all 10 questions
Quiz: Selenium Setup · Question 4 of 10
In TestNG's assertEquals(a, b), which argument is the actual value?
In TestNG's assertEquals(a, b), which argument is the actual value?
- A.The first one
- B.The second one
- C.Either; order doesn't matter
- D.Neither — TestNG has no assertEquals
Answer & explanation
Correct answer: The first one
TestNG: assertEquals(actual, expected). JUnit is the other way round.
Can you get the rest right without peeking?
Take the timed Quiz: Selenium Setup quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →