#selenium
#testng
#seleniumwebdriver
#seleniumjava
#webautomation
#postman
#java
#maven
#maventutorial
#karate
#restapi
#restapiautomation
#apitesting
#malayalam
#softwaretesting
#beginners
#മലയാളം
#TheTestingInstinct
#tutorials
The video describes about sharing data from one test method to another using TestNG ITestContext interface in same and different java classes.
Data can be shared in 2 ways:
1. Between different test methods in same class
2. Between different test methods in different class
ITestContext interface defines a test context which contains all the information for a given
test run. An instance of this context is passed to the test listeners so they can query
information about their environment.
setAttribute(atttributeName, attributeValue) - Set a custom attribute. It is similar toadding an element in a Map as key-value pair. Attribute value can be of any type. This is the reason this method accepts Object type as value.
getAttribute(attributeName) - Get the value of given attribute name. Remember return type is an Object.
GitHub link: https://github.com/thetestinginstinct...
Video chapters:
0:00 Introduction & Agenda
3:07 Demo - Share Data between different test methods in same class
8:47 Demo - Share Data between different test methods in different class
Playlist link: • TestNG | Testing Framework for Java P...
Maven setup video: • How to Install Maven in Windows OS. T...
Software Testing playlist link: • Software Testing for Beginners| Malay...
Selenium Java playlist link: • Selenium Java Tutorials in Malayalam ...
Postman Playlist link: • Postman Rest API Testing | Become an ...
Karate Playlist link: • Karate REST API Test Automation|REST ...