🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.The first one
  2. B.The second one
  3. C.Either; order doesn't matter
  4. 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 →