TestNG is a popular testing framework for Java that allows you to define and run tests in a flexible and organized manner. Test methods in TestNG are the actual test cases that you want to run. These test methods can have various parameters and attributes that you can use to customize the test execution. Here… Continue reading Parameters of test methods in TestNg
Tag: TestNG
Parallel Testing in TestNG
Parallel testing in TestNG is a technique used to execute multiple test cases or test methods simultaneously, thereby reducing the overall test execution time. TestNG provides built-in support for parallel execution, allowing testers to run tests in multiple threads or on multiple machines concurrently. This approach is particularly useful for large test suites, helping to… Continue reading Parallel Testing in TestNG
Priorities in TestNG
In TestNG, you can set priorities for test methods to control the order in which they are executed. Priorities are used to define the sequence in which test methods should run within a test class. TestNG executes methods with lower priority values before those with higher priority values. Here’s an example of how to use… Continue reading Priorities in TestNG
Annotations in TestNG
Introduction Testing is a crucial aspect of software development, ensuring that your code works as intended and meets the requirements. TestNG, a widely-used testing framework for Java, simplifies the testing process with its rich set of features and annotations. Annotations in TestNG serve as markers that provide metadata about the methods they annotate. In this… Continue reading Annotations in TestNG
Running Group Tests using TestNG
TestNG, a powerful testing framework for Java applications, offers a wide array of features to streamline the testing process, one of which is the ability to organize and run tests in groups. This functionality proves invaluable when dealing with complex test suites that encompass various types of tests or need to be executed selectively. In… Continue reading Running Group Tests using TestNG
Prioritize Test Cases in TestNG
How to prioritize test cases (For selenium Automation – TestNG Framework) When Multiple test cases are written under one class, it will execute according to the alphabetical order(ASCII), for making it execute based on our condition, we will prioritize the test cases → ByDefault all the tests in the class will be executed in the… Continue reading Prioritize Test Cases in TestNG
Logout using selenium web driver with dynamically handling the dropdown
Testing steps: Load the page using the given URL (Log in | Register (formsscasb.tk)) Login using valid credentials → (Email: radhika.rakesh@jobinandjismi.com, Password: test@12345) Select the arrow dropdown near the account name at the top right of the page and selects the logout option Dynamically handling the dropdown Script: public static void main(String[] args) throws Exception… Continue reading Logout using selenium web driver with dynamically handling the dropdown
Test NG Basics
TestNG is an automation testing framework in which NG stands for “Next Generation”. TestNG is inspired by JUnit which uses the annotations (@). TestNG overcomes the disadvantages of JUnit and is designed to make end-to-end testing easy. Using TestNG, you can generate a proper report, and you can easily come to know how many test cases are passed, failed, and… Continue reading Test NG Basics