In real test scenarios, multiple environment is very common, like regression test on multiple data centers, maybe dozens,hundreds,even thousands server need to be tested with same case. TSTest-Multiple Environment(Test Service-Test-Multiple environment) is a test framework for multiple env based on testng.
- Add testng case extends from BaseCase
- Add a constructor with 1 parameter for ip in the class
- Register the case to TestFactory class
- Run it from command line, pass the host address by ipList parameter. ... mvn clean package -Dtestngfile=demo.xml -DipList=127.0.0.1,localhost ...
Jun Qin
If you find any bug or issues, be free to send mail to [email protected]
MIT©️Jun Qin