• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

SoftwareTestingo - Interview Questions, Tutorial & Test Cases Template Examples

SoftwareTestingo - Interview Questions, Tutorial & Test Cases Template Examples

  • Home
  • Test Case Examples
  • Interview Questions
  • Interview Questions Asked
  • Java
  • Java Program
  • Selenium
  • Selenium Programs
  • Manual Testing
  • Difference
  • Tools
  • SQL
  • Contact Us
  • Search
SoftwareTestingo » Selenium » Selenium Programs » How to Do Parallel Test Execution In Selenium TestNG Example Program?

How to Do Parallel Test Execution In Selenium TestNG Example Program?

Last Updated on: June 6, 2020 By Softwaretestingo Editorial Board

Parallel Test Execution TestNg Program: How to Do Parallel Test Execution In Selenium TestNG Example Program?

package com.selenium.TestNG;
import org.testng.annotations.Test;
public class ParallelTestExec 
{
   @Test
   public void test1()
   {
      System.out.println("Test1 Executed");
      System.out.println("Test Case One with Thread Id:- "+ Thread.currentThread().getId());
   }
   @Test
   public void test2()
   {
      System.out.println("Test2 Executed");
      System.out.println("Test Case Two with Thread Id:- "+ Thread.currentThread().getId());
   }
}

Read Also: Pass Value Useing Parameter TestNG Annotation

    Filed Under: Selenium Programs

    Reader Interactions

    Leave a Reply Cancel reply

    Your email address will not be published. Required fields are marked *

    Primary Sidebar

    Join SoftwareTestingo Telegram Group

    Categories

    Copyright © 2023 SoftwareTestingo.com ~ Contact Us ~ Sitemap ~ Privacy Policy ~ Testing Careers