Wednesday 23 August 2023

TestNG Tutorial #10 Before Class and After Class in TestNg Automate Myntra


@BeforeClass: The annotated method will be run before the first test method in the current class is invoked. @AfterClass: The annotated method will be run after all the test methods in the current class have been run. @BeforeMethod: The annotated method will be run before each test method.

Watch this video to understand more:

Friday 11 August 2023

#8 The @BeforeTest methods run after each Test methods in testNg

The @BeforeTest methods run after each Test methods. @BeforeTest can be used for creating an initial data set up and prior to running other test methods, whereas @AfterTest annotation will run after the other tests are complete.

Watch this video to understand more:

Thursday 10 August 2023

TestNG Tutorial #7 running tests parallel in TestNg using XML file

What Is TestNG.Xml?

TestNG.xml file is a configuration file that helps in organizing our tests. It allows testers to create and handle multiple test classes, define test suites and tests.

It makes a tester’s job easier by controlling the execution of tests by putting all the test cases together and run it under one XML file.

Major advantages of TestNG.xml file are:

  • It provides parallel execution of test methods.
  • It allows the dependency of one test method on another test method.
  • It helps in prioritizing our test methods.
  • It allows grouping of test methods into test groups.
  • It supports the parameterization of test cases using @Parameters annotation.
  • It helps in Data-driven testing using @DataProvider annotation.
  • It has different types of assertions that help in validating the expected results with the actual results.
  • It has different types of HTML reports, Extent reports, etc. for a better and clear understanding of our test summary.
  • It has listeners who help in creating logs.
Watch this video for deep understanding of testNg

Interview Experience with AMAZON for the role of Quality Assurance Tester

This role was for Digital/ IoT/Mobile Application based testing :)  Amazon is a dream company and everyone wants to work for that company a...

Popular Posts