Selenium + Octopus, Chrome browser is not launched when executing scripts in VM

Sandeep's Avatar

Sandeep

16 Nov, 2017 05:51 PM

We are using Octopus deploy tool for CI, octopus has two steps configured and is given below

1- Octopus picks the automation package (zipped files) from the octopus library and deploys the file to the configured target machine(Which is a physical server VM).
Note: Package will be extracted in the VM while deploying, And the target path to extract is configured in octopus.

2- Octopus will have a step to execute a maven build with desired goals

Note: Automation project is a maven project developed through webdriver

Observation: When the scripts are executed, We can see the console logs in octopus but we are not able to see the execution in VM ,
where the scripts were deployed

Note: We tried changing the "Log On As" property to specific user in OctopusDeploy Tentacle service

  1. Support Staff 1 Posted by Robert Wagner on 17 Nov, 2017 04:56 AM

    Robert Wagner's Avatar

    Hi Sandeep,

    Thanks for getting in touch. Windows maintains various sessions (or desktops) that are isolated from each other. There is on one for each logged in user and one for services. Services run in session 0, and the first interactively logged in user runs as 1. You can see what session a process is running under by opening the Task Manager, selecting the Details tab and adding the Session column to the list of processes.

    The tentacle is running as a service, so it's windows open in session 0 (if interact with desktop option is enabled on the service). When you are logged into the VM, you see session 1 or greater therefor you will not see windows created by the tentacle service (or it's children). Imagine if you were logged in twice to the machine with the same account (which is possible), you have separate desktops that cannot interact. There is no way to see the desktop for session 0.

    If you really need to see it doing it's work, you need to stop the Tentacle service and run it from a console prompt (eg Tentacle.exe run --instance MyInstance).

    If you are having trouble with running Selenium, please ensure the Tentacle service has the Allow service to interact with desktop permission in the Windows service settings.

    Rob W

  2. 2 Posted by sandeep ramacha... on 17 Nov, 2017 11:58 AM

    sandeep ramachandra's Avatar

    Thanks Robert for the quick turn around.

    Running octopus tentacle from console prompt seems to be working fine for
    us.

    We will contact again, If we face some issue.

    Thanks,
    R Sandeep

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac