![](/img/trans.png)
[英]How to run Selenium IDE scripts in Selenium RC using PHPUnit?
[英]Jenkins setup to run selenium ide script using selenium rc
我無法通過 jenkins 運行 selenium ide 腳本。 它在檢查資源別名時掛起並且不打開任何瀏覽器。
我嘗試了以下設置:
我已經配置了 selenium 服務器如下:
Jenkins Dashboard -> configure -> Selenium Remote Control -> htmlSuite Runner -> C:\Selenium\selenium-server-standalone-2.37.0.jar
我已將作業配置如下:
Job -> Job Name -> Configure -> Build -> SeleniumHQ htmlSuite Run-> browser: *firefox startURL: https://google.com/ suiteFile: C:\Scripts\Suite.html resultFile: C:\Scripts\results .html`
誰能告訴我我做錯了什么?
按照@glomad的指導,我需要做類似的事情,我解決了如下,我希望它可以幫助其他人:
下載docker 組合文件並運行:
https://github.com/SeleniumHQ/docker-selenium/blob/trunk/docker-compose-v3.yml
docker compose up -d
https://chrome.google.com/webstore/detail/selenium-ide/mooikfkahbdckldjjndioackbalphokd
在您的 pom.xml 中添加了依賴項
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>4.4.0</version>
</dependency>
我在導入中做了一些更正
在 jenkins 中,我配置了管道以下載項目並執行配置的測試。
...
stage('Run Tests') {
steps {
sh 'mvn test'
}
}
希望這可以幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.