I have to execute my regression test suite in many test environments (eg: QA, QAH, QAT) for environments The URL is different and user credentials are different. My TestNG xml is shown below: -
& lt ;? Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt ;! DOCTYPE Suite System "http://testng.org/testng-1.0.dtd"> & Lt; Suite thread-count = "4" name = "suit" parallel = "test" & gt; & Lt; Test name = "test1" & gt; & Lt; Classes & gt; & Lt; Class name = "com.seleniumgrid.TestScripts.Test1" /> & Lt; / Sections & gt; & Lt; / Test & gt; & Lt; Test name = "test2" & gt; & Lt; Classes & gt; & Lt; Class name = "com.seleniumgrid.TestScripts.Test2" /> & Lt; / Sections & gt; & Lt; / Test & gt; & Lt; Test name = "test3" & gt; & Lt; Classes & gt; & Lt; Class name = "com.seleniumgrid.TestScripts.Test3" /> & Lt; / Sections & gt; & Lt; / Test & gt; & Lt; Test name = "test4" & gt; & Lt; Classes & gt; & Lt; Class name = "com.seleniumgrid.TestScripts.Test4" /> & Lt; / Sections & gt; & Lt; / Test & gt; & Lt; / Suits & gt; & Lt ;! - Suits - & gt; For example, if there are 3 remote machines, then I have to execute parallel in the 3 systems using the Firefox browser using the above lists. The solution should be in such a way that, if in the future some other environment comes into the picture, the suit should be performed in those environments more equally.
I think, this can be achieved using Selenium GRID. Can anyone give me some tips / ideas on this?
Thanks in advance!
You can get this by looking at the structure given below how it is designed for your structure That is, it depends on it. You can test Paramitrizad. Use of GRID is also good idea. You can use dataProvider from testNG and read data from excel file and send it to the appropriate script.
Let me know if it helps.
No comments:
Post a Comment