# Opening Firefox with a Specific, non anonymous profile

**URL:** <https://forum.katalon.com/t/opening-firefox-with-a-specific-non-anonymous-profile/12012>\
**Category:** Feature Request\
**Tags:** feature-request, katalon-studio\
**Created:** [July 12, 2018, 1:03pm UTC](https://forum.katalon.com/t/opening-firefox-with-a-specific-non-anonymous-profile/12012 "2018-07-12T13:03:57Z")\
**Posts on this page:** 1\
**Showing post:** 15

<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:** [November 27, 2018, 8:00am UTC](https://forum.katalon.com/t/opening-firefox-with-a-specific-non-anonymous-profile/12012/15 "2018-11-27T08:00:37Z")

</div>

I have made and published a demo project in Github

- [GitHub - kazurayam/KatalonDiscussion7892: How to open Firefox with a specific, non anonymous profile in Katalon Studio](https://github.com/kazurayam/KatalonDiscussion7892)

----------

## Description

### How to start Firefox with prepared user profile

Have a look at the source of [Test Cases/TC1](https://github.com/kazurayam/KatalonDiscussion7892/blob/master/Scripts/TC1/Script1531449007343.groovy)

### How to start Firefox with multiple user Profiles

I made a Excel book named `Book1.xlsx` and saved in the folder `Data Files`. It contains the following content: [![Book1](https://europe1.discourse-cdn.com/katalon/original/1X/64b1e903af35e3874c146daed6c65685f00f2259.png)](https://github.com/kazurayam/KatalonDiscussion7892/blob/master/docs/images/Book1.png)

I registered the Excel file into Katalon Studio. See the document [Manage Test Data](https://docs.katalon.com/katalon-studio/docs/manage-test-data.html) [![](https://dub1.discourse-cdn.com/katalon/uploads/default/original/1X/a5a2a0dc3e760804638d863321af494622e079ee.png)](https://github.com/kazurayam/KatalonDiscussion7892/blob/master/docs/images/DataFile.png)

We can iterate over the list of user profile names in the data file (‘usualProfile’, ‘seleniumProfile’) in two ways.

1. a Test Case iterates over the data while invoking another Test Case passing the profile name as parameter. Please find the code: [`Test Cases/TC2`](https://github.com/kazurayam/KatalonDiscussion7892/blob/master/Scripts/TC2/Script1543285423118.groovy) iterates over the list of Profile names while calling another [`Test Cases/worker`](https://github.com/kazurayam/KatalonDiscussion7892/blob/master/Scripts/worker/Script1543285477659.groovy)
2. a Test Suite iterates over the data while invoking another Test Case passing the profile name as parameter. The following screenshot shows how `Test Suites/TS3` is defined: [![](https://dub1.discourse-cdn.com/katalon/uploads/default/original/1X/5fb74edfe91095e0e20525b2709ad1de452893db.png)](https://github.com/kazurayam/KatalonDiscussion7892/blob/master/docs/images/TS3.png)

Both approach resulted the same output in the log:

```auto
...>>> opened http://demoaut.katalon.com/ in FireFox with profile named usualProfile...>>> opened http://demoaut.katalon.com/ in FireFox with profile named seleniumProfile...

```

[![](https://dub1.discourse-cdn.com/katalon/uploads/default/original/1X/2d21fa522048fbe3deeb007b6a6bacc48097c7bd.png)](https://github.com/kazurayam/KatalonDiscussion7892/blob/master/docs/images/log.png)

I think this log messages proves that I could start Firefox sequentially multiple times with different customer profiles recorded in Excel file.

The Katalon documentation [Data driven testing](https://docs.katalon.com/katalon-studio/tutorials/data_driven_testing.html#data-driven-tests-execution) is describing similar know-how.

---

_[View the full topic](https://forum.katalon.com/t/opening-firefox-with-a-specific-non-anonymous-profile/12012)._
