# How to test in parallel using specific chrome profile in katalon?

**URL:** <https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [July 1, 2021, 9:23am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233 "2021-07-01T09:23:17Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [July 1, 2021, 9:23am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/1 "2021-07-01T09:23:17Z")

</div>

How to test in parallel using specific chrome profile in katalon?

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [July 1, 2021, 9:44am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/2 "2021-07-01T09:44:33Z")

</div>

I am not sure but the following may interest you:

> [@How to open 2 Chrome browser windows and perform test on both simultaneously](http://forum.katalon.com/t/how-to-open-2-chrome-browser-windows-and-perform-test-on-both-simultaneously/50264):
>
> Problem to solve In a single Katalon Test Case, I want to open 2 windows of Chrome Browser. One in normal mode, another in [Incognito mode](https://support.google.com/chrome/answer/95464?co=GENIE.Platform%3DDesktop&hl=en). I want to perform various testing actions on each browser window using WebUI.\* keywords as usual. I want to repeat switching between 2 windows back and forth. Why Incognito mode Quote from [Cybersecurity Training & Software | MetaCompliance](https://www.metacompliance.com/blog/3-reasons-to-browse-the-internet-in-incognito-mode/) Multiple sessions – One of the great advantages of going Incognito, is it enables you to sign in to multiple accou…

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [July 1, 2021, 9:55am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/3 "2021-07-01T09:55:29Z")

</div>

Straight forward approach to parallelism in Katalon Studio is to run multiple Test Suites in a Test Suite Collection.

> **[Test Suite Collection](https://docs.katalon.com/katalon-studio/docs/test-suite-collection.html)**
>
> A Test Suite Collection contains a list of test suites to allow users more options for planning their test execution.  Manage Execution Information You can manage additional configurations for test...

If you have 2 Test Suites to run parallel mode, each of them will run in separated OS processes = Java VM instances (not Threads)

---

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [July 1, 2021, 12:29pm UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/4 "2021-07-01T12:29:33Z")

</div>

My issues is that i need to run both test using differents chrome profile in parallel.  
How can i do that?

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [July 1, 2021, 12:35pm UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/5 "2021-07-01T12:35:14Z")

</div>

A few years ago I did something like this:

> <https://github.com/kazurayam/WebDriverFactory4ks/blob/master/Scripts/main/example/usingWebDriverFactory/how_to_newWebDriverWithCustomProfile/Script1582158787629.groovy>

---

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [October 25, 2021, 2:19pm UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/6 "2021-10-25T14:19:17Z")

</div>

Hello Kazurayam, i tried your solution, however end up with the following errors:

> INFO: Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`  
> Starting ChromeDriver 95.0.4638.17 (a9d0719444d4b035e284ed1fce73bf6ccd789df2-refs/branch-heads/4638@{#178}) on port 26393  
> Only local connections are allowed.  
> Please see [ChromeDriver - WebDriver for Chrome - Security Considerations](https://chromedriver.chromium.org/security-considerations) for suggestions on keeping ChromeDriver safe.  
> ChromeDriver was started successfully.  
> 2021-10-25 18:07:23.475 ERROR k.k.c.m.CustomKeywordDelegatingMetaClass - ❌ unknown error: no chrome binary at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe  
> Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
> System info: host: ‘MAEGL63P3’, ip: ‘10.150.0.176’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_282’  
> Driver info: driver.version: WebDriverFactory$newWebDriver  
> remote stacktrace: Backtrace:  
> Ordinal0 [0x00CA3AB3+2505395]  
> Ordinal0 [0x00C3AE41+2076225]  
> Ordinal0 [0x00B42498+1057944]  
> Ordinal0 [0x00B5B7B1+1161137]  
> Ordinal0 [0x00B59EBF+1154751]  
> Ordinal0 [0x00B8A02F+1351727]  
> Ordinal0 [0x00B89C9A+1350810]  
> Ordinal0 [0x00B858BB+1333435]  
> Ordinal0 [0x00B623E4+1188836]  
> Ordinal0 [0x00B6323F+1192511]  
> GetHandleVerifier [0x00E2CB36+1554566]  
> GetHandleVerifier [0x00ED4A0C+2242396]  
> GetHandleVerifier [0x00D30E0B+523099]  
> GetHandleVerifier [0x00D2FEB0+519168]  
> Ordinal0 [0x00C402FD+2097917]  
> Ordinal0 [0x00C44388+2114440]  
> Ordinal0 [0x00C444C2+2114754]  
> Ordinal0 [0x00C4E041+2154561]  
> BaseThreadInitThunk [0x7677FA29+25]  
> RtlGetAppContainerNamedObjectPath [0x77DB7A9E+286]  
> RtlGetAppContainerNamedObjectPath [0x77DB7A6E+238]
> 
> 2021-10-25 18:07:23.481 ERROR c.k.katalon.core.main.TestCaseExecutor - ❌ Test Cases/POC\_SessionQuota/poc\_sessionQuota FAILED.  
> Reason:  
> com.kms.katalon.core.exception.StepErrorException: org.openqa.selenium.WebDriverException: unknown error: no chrome binary at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe  
> Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’  
> System info: host: ‘MAEGL63P3’, ip: ‘10.150.0.176’, os.name: ‘Windows 10’, os.arch: ‘amd64’, os.version: ‘10.0’, java.version: ‘1.8.0\_282’  
> Driver info: driver.version: WebDriverFactory$newWebDriver  
> remote stacktrace: Backtrace:  
> Ordinal0 [0x00CA3AB3+2505395]  
> Ordinal0 [0x00C3AE41+2076225]  
> Ordinal0 [0x00B42498+1057944]  
> Ordinal0 [0x00B5B7B1+1161137]  
> Ordinal0 [0x00B59EBF+1154751]  
> Ordinal0 [0x00B8A02F+1351727]  
> Ordinal0 [0x00B89C9A+1350810]

Can you please help?

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [October 25, 2021, 11:45pm UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/7 "2021-10-25T23:45:54Z")

</div>

Mind this error message.

> [@ziyaad.ellahee](#):
>
> error: no chrome binary at C:\Program Files (x86)\Google\Chrome\Application\chrome.exe

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [October 26, 2021, 12:34am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/8 "2021-10-26T00:34:27Z")

</div>

If you have the chrome.exe somewhere else, then you need to declare it as follows

> [@How to open a second browser without closing the first?](http://forum.katalon.com/t/how-to-open-a-second-browser-without-closing-the-first/11407/2):
>
> Hi Kevin, you can open two WebDrivers manually and switch between them. Drivers are located in Katalon installation folder - configuration\resources\drivers System.setProperty("webdriver.chrome.driver","C:\\path\\to\\chromedriver.exe") System.setProperty("webdriver.gecko.driver", "C:\\path\\to\\geckodriver.exe") WebDriver chrome = new ChromeDriver() WebDriver ff = new FirefoxDriver() // let Katalon know that chrome driver is usedDriverFactory.changeWebDriver(chrome)// Katalon keywords work as …

---

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [December 20, 2021, 2:11pm UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/9 "2021-12-20T14:11:20Z")

</div>

Hello @kazurayam, referring to this post, i was able to trigger the specific chrome profile named but now i want it to run in headless mode. Which parameters that i need to pass so that it can be run in headless mode?

---

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [December 20, 2021, 3:25pm UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/12 "2021-12-20T15:25:35Z")

</div>

> [@kazurayam](#):
>
> DriverType chromeHeadless = new DriverTypeImpl(‘HEADLESS\_DRIVER’)

Since i do the license for Katalon, can we have a call?

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 21, 2021, 1:29am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/13 "2021-12-21T01:29:50Z")

</div>

I have published the [v0.3.5](https://github.com/kazurayam/WebDriverFactory4ks/releases/tag/0.3.5) of my WebDriverFactory4ks , which enables you to write a Test Case like this:

> <https://github.com/kazurayam/WebDriverFactory4ks/blob/master/Scripts/main/example/usingWebDriverFactory/how_to_newWebDriverWithCustomProfile/Script1582158787629.groovy>

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 21, 2021, 1:48am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/15 "2021-12-21T01:48:08Z")

</div>

> [@ziyaad.ellahee](#):
>
> Since i do the license for Katalon, can we have a call?

??? I do not understand your question.

My WebDriverFactory4ks works on Katalon Studio Free version. It does not require KSE, KRE license. Just download the jar from [Releases · kazurayam/WebDriverFactory4ks · GitHub](https://github.com/kazurayam/WebDriverFactory4ks/releases) and put it into `<projectDir>/Drivers` directory.

---

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [December 21, 2021, 8:40am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/16 "2021-12-21T08:40:33Z")

</div>

Hello @kazurayam, i already performed what you have instructed.  
However, i’m using the script below to start a chrome profile, however what is missing is that how to modify it to execute ii with headless mode? I want to modify only the script below to do that:

```
public class open_dedicated_chrome_profile {

/**
 * Open dedicated enroll chrome profile
 */
@Keyword
def openBrowser(String identityType) {

	WebDriver driver = WebDriverFactory.newWebDriver(DriverFactory.getExecutedBrowser(), identityType) // THIS IS THE MAGIC
	assert driver != null
	DriverFactory.changeWebDriver(driver)	// Do not forget this

	WebUI.comment("${DriverFactory.getExecutedBrowser()} has been opened with ${identityType}")

	KeywordUtil.markPassed('Dedicated chrome opened successfully')
}

```

}

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 21, 2021, 9:04am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/17 "2021-12-21T09:04:02Z")

</div>

You do not have to modify your `open_dedicated_chrome_profile.openBrowser()` at all.

In Katalon Studio GUI, you want to choose Chrome (headless).

 ![スクリーンショット 2021-12-21 18.02.34](https://europe1.discourse-cdn.com/katalon/original/3X/2/b/2b6455789e770f2043a2c8fc4aa2f6d47a5921e6.png)

`DriverFactory.getExecutedBrowser()` will return a String “HEADLESS\_DRIVER”. This will instruct `WebDriverFactory.newWebDriver("HEADLESS_DRIVER", identityType)` to start Chrome Headless using the specified user profile.

---

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [December 21, 2021, 11:25am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/18 "2021-12-21T11:25:54Z")

</div>

> [@kazurayam](#):
>
> `DriverFactory.getExecutedBrowser()` will return a String “HEADLESS\_DRIVER”. This will instruct `WebDriverFactory.newWebDriver("HEADLESS_DRIVER", identityType)` to start Chrome Headless using the specified user profile.

I did the test, however, when i choose Chrome, my test run successfully but not when i choose Chrome(Headless). I believed that in headless mode, test is run as if in incognito mode.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 21, 2021, 11:27am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/19 "2021-12-21T11:27:13Z")

</div>

> [@ziyaad.ellahee](#):
>
> I did the test, however, when i choose Chrome, my test run successfully but not when i choose Chrome(Headless). I believed that in headless mode, test is run as if in incognito mode.

Sorry, I don’t understand what you wrote.

---

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [December 21, 2021, 11:29am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/20 "2021-12-21T11:29:00Z")

</div>

My test passed when i choose only Chrome from the list but not when choosing the chrome-headless.

With Chrome:

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/c/1/c1123856e69c95a152b4d6d7fe4cbd3a6d17c2e9.png)

With Chrome-Headless:  
It failed ☹

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 21, 2021, 11:33am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/21 "2021-12-21T11:33:06Z")

</div>

For me it works with Chrome (headless).

Any error log?

---

<div class="post-metadata">

**Author:** ![ziyaad.ellahee](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ziyaad.ellahee/32/16103_2.png) [@ziyaad.ellahee](https://forum.katalon.com/u/ziyaad.ellahee)\
**Post date:** [December 21, 2021, 11:45am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/22 "2021-12-21T11:45:10Z")

</div>

It mention that a web element was not found, but that’s not the issue.  
In fact, when i run my test with Chrome, it pass because there is an existing enrollment in the profile chrome browser, but in headless mode, i believe that cookies, my enrollment does not exist. See snapshot when failed:

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/a/6/a6a5fd01fb8afed90f24411cc107e6a2f3aa5996.png)

The above error is displayed when there is no enrollment.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 21, 2021, 11:52am UTC](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233/23 "2021-12-21T11:52:35Z")

</div>

I have no idea how your problem “NAV06 You must enroll your browser to authenticate” comes up.

I think i can do nothing about it.

[Next page](https://forum.katalon.com/t/how-to-test-in-parallel-using-specific-chrome-profile-in-katalon/56233.md?page=2)
