- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Ashish Anand has Published 213 Articles
Ashish Anand
4K+ Views
A TestNG class can have various TestNG methods such as @BeforeTest, @AfterTest, @BeforeSuite, @BeforeClass, @BeforeMethod, @test, etc. As per execution order, @BeforeTest executes first and after that, @BeforeClass does. However, if there are multiple TestNG classes and multiple Tests inside each class, then the behaviour of these methods is noticeable.@BeforeTestThis ... Read More
Ashish Anand
4K+ Views
TestNG supports multi-invocation of a test method, i.e., a @Test method can be invoked multiple times sequentially or in parallel. If we want to run single @Test 10 times at a single thread, then invocationCount can be used.To invoke a method multiple times, the keyword invocationCount = is required. ... Read More
Ashish Anand
966 Views
TestNG supports a lot of assertions. It has the org.testng.Assert class, which extends the Java object class java.lang.object. Whenever there is a failure, the user wants to get a customized failure message so that the root-cause analysis could be easy. TestNG supports assertion with customized failure message. However, message is ... Read More
Ashish Anand
3K+ Views
TestNG supports native dependency injection. It allows to declare additional parameters in methods. At runtime, TestNG automatically fills these parameters with the correct values. Here is a set of native dependencies in TestNG:ITestContextXmlTestMethodITestResultThese dependencies help to retrieve the Test method name. A Test method name can be retrieved before or ... Read More
Ashish Anand
1K+ Views
TestNG supports native dependency injection. It allows to declare additional parameters in methods. At runtime, TestNG automatically fills these parameters with the correct values. Following is a set of native dependencies in TestNG −ITestContextXmlTestMethodITestResultThese dependencies help to retrieve the description of Test method, if written. A Test method name can ... Read More
Ashish Anand
10K+ Views
testng.xml has a format as where we define what all test classes should be executed. Users can mention n number of classes in testing.xml that require executing. In this article, we are going to discuss how to execute more than one class using a single testing.xml.Here, we will have ... Read More
Ashish Anand
9K+ Views
A TestNG class can have different tests like test1, test2, test3, etc. Once a user runs a TestNG class consisting of various tests, it runs the test cases in an alphabetic order based on the name provided. However, the user can assign the priority to these tests so that these ... Read More
Ashish Anand
381 Views
Problem Statement: Use boto3 library in Python to find out whether a function can paginate or not in AWS secret.Approach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_function is the required parameter in this function.Step 3: Create an AWS session using boto3 lib. ... Read More
Ashish Anand
243 Views
Problem Statement: Use boto3 library in Python to remove tags in AWS secret.Approach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_location and tags_list are the required parameters in this function. tags_list should be the list of keys to be untaged.Step 3: Create an ... Read More
Ashish Anand
691 Views
Problem Statement: Use boto3 library in Python to add tags in AWS secret.Approach/Algorithm to solve this problemStep 1: Import boto3 and botocore exceptions to handle exceptions.Step 2: secret_location and tags_dict are the required parameters in this function. tags_dict should be as {“key”:”value”, ..}Step 3: Create an AWS session using boto3 ... Read More
To Continue Learning Please Login
Login with Google