Loading, please wait ...
Open its course - Software Quality
TestNG Tips By Subject Expert Admin
Summary

Summary

6
Teachers with
Subject Expert Admin
141
Followers
For Learning
All
Visibility
Security Status
1
Contributions
By Teachers
Notes
  1. Students are auto-evaluated against related topics to ensure they learned it.

Tips that you should now while using TestNG for automation

Collection of Tips

Why to use dependson instead of priority for a test? for All, By Subject Expert Admin

  • By chaining all of the methods using dependsOnMethod, you can satisfy the ordering requirements. 
  • Priority just suggests the order in which the tests are run, whereas dependsOn says "I need this order test to pass before I can run, and if it fails, then I fail as well" 
  • The other huge benefit is that if we have priority 1,2,3,4,5,6 and we need to add a new entry in the middle, we don't have to change the priority on every subsequent test, we only need to change 1 test's dependsOnMethod.
  • Finally, if priority = 3 is removed from a file, the code will still build, leaving us with priority 1,2,4,5.... With dependsOnMethod, the code will no longer compile, which will force us to explicitly fix the ordering (I think I consider this to be a good thing).

×

TestNG Tips Evaluation

To earn PASS status, system is about to evaluate you using multiple choice questions (MCQs) and True/False type questions.

  • CAREFULLY READ THE FOLLOWING INSTRUCTIONS!
  • Make sure you have learned this lecture along with its topics and tutorials.
  • On first evaluation you get 100% marks on correct answer, then on 2nd you get 95% marks and so on.
  • Answer the questions with a gap NOT MORE THAN A MINUTE, Otherwise it will re-start.

I have read above instrucitons and ready for evaluation.
Your's
Status
Not Registered
Teacher
Subject Expert Admin
TODO
Please ask your teacher to link related questions for this lecture.
Alert
Your performance monitoring will start when you register in a class of this course.

Questions on

No Linked topics!
Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert