0

I have installed the Jenkins on my windows machine. I am currently doing the functional testing of a website and i have created all the test cases using selenium . I ran all these testcases using eclipse with testng plugin.

Now is there any way where i can run these testcases in eclipse from Jenkins itself i.e Can i control the eclipse from Jenkins. I am trying hard now and able to run it using batch command( i have written all the commands in a batch file to run the eclipse and selenium driver and that batch file is executed from Jenkins ) but i am in search of a plugin where i can run directly the eclipse , selenium web-driver using that plugin. Please see to this issue.

Thanks.

4

1 に答える 1

2

あなたはバッチファイルで正しい行にいますが、Eclipseの代わりにAntまたはMavenを使用することをお勧めします.AntまたはMavenはJavaでビルドをスクリプト化する標準的な方法であり、Jenkinsを適切にサポートしています.

テスト前に Maven が Selenium を起動するためのプラグインは次のとおりです: http://mojo.codehaus.org/selenium-maven-plugin/

Maven を使用して TestNG テストを実行する方法は次のとおりです: http://maven.apache.org/plugins/maven-surefire-plugin/examples/testng.html

于 2012-08-08T10:48:47.190 に答える