I created a pipeline under azure devops which runs in a vm and which I use to launch selenium tests created from selenium ide
**pool: vmImage: 'windows-latest'**
The start of my pipeline is to install the things I need to do this
** - task: Npm@0 displayName: 'install selenium-side-runner' inputs: arguments: '[email protected] --global'
- task: Npm@0 displayName: 'install chromedriver' inputs: arguments: '[email protected] --global'**
and then I run the tests with selenium-side-runner with a command line task
**- task: CmdLine@2 inputs: script: 'selenium-side-runner Yards.side --timeout 6000000 -c "browserName=chrome" -d' workingDirectory: '$(System.DefaultWorkingDirectory)/Selenium/te**
sts'
the test file is well read and starts trying to connect to the app http://www.toto:2001 and this is my concern I have the error unknown error: net::ERR_NAME_NOT_RESOLVED
I tried to add a task to ping known sites but they can't solve it
being on a temporary vm is a problem to access a site or is it something else?
best regards
pool vmimage can not connect to the internet ?
CodePudding user response:
Based on your description and the guidance in this document, if you would test the web app deployed on your on-premise server, please use a self-hosted agent that you install on the target servers. Agents must be configured to run interactively with auto-logon enabled.
Currently, your pipeline is running on the Microsoft-hosted agents with the vmImage
of windows-latest
.Microsoft-hosted agent are pre-configured for UI testing and UI tests for both web apps and desktop apps. When using the Microsoft-hosted agent, you should use the Selenium web drivers that are pre-installed on the Windows agents, because they are compatible with the browser versions installed on the Microsoft-hosted agent images.
Kindly take UI testing considerations for more informaiton.