mcdcorp / opentest

Open source test automation tool for web applications, mobile apps and APIs
https://getopentest.org
MIT License
447 stars 107 forks source link

Unable to see browser instance when starting server and actor consoles from Jenkins and running the scripts. #508

Closed Naveenkumarnnk closed 2 years ago

Naveenkumarnnk commented 3 years ago

Hi Team,

I am starting server and actor consoles from the Jenkins job and when creating a session from the Jenkins, I am unable to see the browser instance and test execution.

here are the commands for starting server and actor consoles:

cd "C:\Users\NNK\Auto_code\opentest\server" set BUILD_ID=dontkillme start opentest server

cd "C:\Users\NNK\Auto_code\opentest\server" set BUILD_ID=dontkillme start opentest actor

Command to create test session: opentest session create --template Test_template --env QA --wait

here are chrome settings in the actor file.

Selenium options

selenium:

seleniumServerUrl: http://127.0.0.1:9515

desiredCapabilities:
    browserName: chrome
    chromeOptions:
        args: [ --start-maximized ]
chromeExperimentalOptions:
    prefs:
        download.default_directory: "C:\\Users\\NNK\\Auto_code\\opentest\\CAP\\actor1\\out\\temp\\Downloads"
chromeDriverExePath: C:/Selenium/chromedriver.exe
chromeDriverExeArgs: [--start-maximized, --ignore-certificate-errors]

But when I am manually starting the actor console and running any test, I am able to see the browser instance.

Am I missing anything here? Could you help me in resolving this.?

Thanks

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.