Which all values can be accepted as attribute for parallel execution of test scripts?

0 votes

If I want to run test scripts in parallel using Webdriver and TestNG framework, then which all values can be passed in "parallel" attribute?

Jun 20, 2019 in Selenium by Suman
370 views

1 answer to this question.

0 votes

Hi Suman, If I want to run test scripts in parallel using Webdriver and TestNG framework, then "parallel" attribute of suite tag can accept following values:

  1. tests: When the parallel attribute has value as tests, then all the test cases present inside the test tag will run in parallel.

  2. classes: When the parallel attribute has value as classes, then all the test cases present inside a JAVA class will run in parallel.
  3. methods: When the parallel attribute has value as methods, then all the methods with ‘@Test’ annotation will execute in parallel.

  4. instances: When the parallel attribute has value as instances, then all the test cases present in the same instance will execute in parallel.

answered Jun 20, 2019 by Abhilasha

Related Questions In Selenium

0 votes
1 answer

Assertions in Selenium can be used in which all modes?

Hello Gauri, Assertions in selenium can be used ...READ MORE

answered May 14, 2019 in Selenium by Pratibha
• 3,690 points
96 views
0 votes
1 answer

Which click command can be used to click on a specific part of webpage in Selenium?

Hi Apeksha, in Selenium IDE to click on ...READ MORE

answered Oct 17, 2019 in Selenium by Devesh
292 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,520 points
3,800 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31 in Selenium by Sri
• 2,970 points
4,784 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
2,758 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2 in Selenium by Sri
• 2,970 points
3,117 views
+6 votes
1 answer

Recording all of our test cases in Selenium IDE

Well @vincitydaimo, for obvious reasons we prefer not ...READ MORE

answered Sep 20, 2018 in Selenium by Vardhan
• 13,180 points
115 views
0 votes
1 answer

How can I write test scripts in Selenium with python?

Hey Khushi, writing test scripts in Selenium ...READ MORE

answered May 9, 2019 in Selenium by Anvi
• 14,110 points
193 views