Katalon & BrowserStack integration in GitHub Action

Hi all!
Can anyone help me with the Katalon and browserstack integration in GitHub Action
This is what I’m trying but not working

  • name: Run Katalon Studio Tests on BrowserStack
    uses: katalon-studio/katalon-studio-github-action@v4.0
    with:
    version: “10.1.0”
    projectPath: “${{ github.workspace }}”
    args: ‘-noSplash -retry=0 -browserType=“Remote” -executionProfile=“QA” -statusDelay=15 -testSuiteCollectionPath=“Test Suites/Testing” -apiKey=“${{ secrets.KATALON_API_KEY }}” --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true -webui.autoUpdateDrivers=true’

     env:
       BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
       BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
    

Thanks!

1 Like

Hi @isard, :wave:

Welcome to our forum!

I’ve moved your comment to a new thread so that it’d get better visibility by other members. Be sure to follow up with others when there is a new comment in your thread.

Thanks,
Albert

1 Like

hey @isard

try to add this params:

-remoteWebDriverUrl="https://${{ env.BROWSERSTACK_USERNAME }}:${{ env.BROWSERSTACK_ACCESS_KEY }}@hub-cloud.browserstack.com/wd/hub"
1 Like

if above doesn’t works, I think you need to change the katalon version to v9.6.0 @isard

    - name: Run Katalon Studio Tests on BrowserStack
      uses: katalon-studio/katalon-studio-github-action@v4.0
      with:
        version: '9.6.0'

i have similar issue:

Hi @depapp
If I add this in args → -remoteWebDriverUrl=“https://${{ env.BROWSERSTACK_USERNAME }}:${{ env.BROWSERSTACK_ACCESS_KEY }}@hub-cloud.browserstack.com/wd/hub”
and removing Remote URL from internal setting,
I’m getting this error
Running: Test Suites/failures - Remote - - 20250207_072059

@depapp
Above post Not helping with browserstack integration

Please use the code-formatting syntax of Discourse to make your YAML better readable.

In YAML syntax, the indentations are significant, as you know. However, in your quotated text, indentations are clapsed so that your text is not valid as a YAML. Therefore your posts are hard to understand.

Hi @kazurayam sure
When I’m passing Remote URL in args and removing URL from internal Remote setting

args - args: '-noSplash -retry=0 -browserType="Remote" -remoteWebDriverUrl="https://${{ secrets.BROWSERSTACK_USERNAME }}:${{ secrets.BROWSERSTACK_ACCESS_KEY }}@hub-cloud.browserstack.com/wd/hub" -executionProfile="QA" -statusDelay=15 -testSuiteCollectionPath="Test Suites/Testing" -apiKey="${{ secrets.KATALON_API_KEY }}" --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true -webui.autoUpdateDrivers=true'

I’m getting empty URL
Error Test Suites/failures - Remote - <empty server URL> - 20250207_082542...1/1(100%)

I know nothing about Katalon & BrowserStack integration. I would quite this topic.

Try the BrowserStack sided documentation: Integrate your Selenium test suite with GitHub Actions | BrowserStack Docs

I have already gone through this document, but can you let me know how can I pass Remote URL
For Katalon I don’t think I need to setup BrowserStack env as if I choose browserType - Remote it will run scripts on Remote URL.

I have tried hardcoding BrowserStack Creds in Remote URL and running scripts from KRE and it works but now what I don’t know is how can I use git secrets in Remote URL as I don’t want my secrets to be hard coded.

Thank you for your supports!

hey @isard
how about load the github secret first:

- name: Do Something with env files
  env:
    ENV_BS_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
    ENV_BS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}

so your args:

'..... -remoteWebDriverUrl="https://${{ENV_BS_USERNAME}}:${{ENV_BS_KEY}}@hub-cloud.browserstack.com/wd/hub" .....'

When I provide remoteWebDriverUrl in the arguments, KRE still uses the value from the internal settings. Even if I delete the internal settings and run the command through KRE, it returns an error stating that the server URL is empty.

katalonc -noSplash -runMode=console -projectPath="D:\Katalon Studio\Katalon_Automation" -retry=0 -testSuiteCollectionPath="Test Suites/Testing" -browserType="Remote" -remoteWebDriverUrl="https://XXXX:XXXX@hub-cloud.browserstack.com/wd/hub" -remoteWebDriverType="Selenium" -executionProfile="QA" -apiKey="xxxxxx" --config -proxy.auth.option=NO_PROXY -proxy.system.option=NO_PROXY -proxy.system.applyToDesiredCapabilities=true -webui.autoUpdateDrivers=true