Json 使用Jenkins和Github进行Selenium Builder测试
我的目标是:使用SeleniumBuilder作为FF插件、GitHub和Jenkins建立一个简单的测试框架。以.json格式保留测试文件。我现在不想接近java或maven 我当前的设置:-含Github插件的FF28 Selenium Builder插件-含SeleniumBuilder插件的Jenkins 1.567-作为自由式项目的Jenkins作业设置,在推送Git repo时进行构建,并将“调用Selenium Builder脚本”作为构建步骤,其中“脚本文件”指向测试文件夹的根(.json脚本) 我可以使用java-jar SeInterpreter.jar example\u test.json从命令行使用se解释器运行我的.json脚本 我需要知道的是-如何配置Jenkins和se解释器配置文件,以便从Jenkins运行?当前我的interpeter配置文件如下所示:Json 使用Jenkins和Github进行Selenium Builder测试,json,git,selenium,jenkins,Json,Git,Selenium,Jenkins,我的目标是:使用SeleniumBuilder作为FF插件、GitHub和Jenkins建立一个简单的测试框架。以.json格式保留测试文件。我现在不想接近java或maven 我当前的设置:-含Github插件的FF28 Selenium Builder插件-含SeleniumBuilder插件的Jenkins 1.567-作为自由式项目的Jenkins作业设置,在推送Git repo时进行构建,并将“调用Selenium Builder脚本”作为构建步骤,其中“脚本文件”指向测试文件夹的根(
{
"type": "interpreter-config",
"configurations": [
{
"settings": [
{
"driverOptions": {
"host": localhost,
"port": 4444
},
"browserOptions": {
"browserName": "firefox",
}
}
],
"scripts": [
"mySeleniumBuilderTests/tests/*"
]
}
]
}
我就是这样做的。
1.将Selenium Builder插件添加到Jenkins中。
2.将测试脚本(html或json)上载到git repo。
3.在Build中,选择Invoke Selenium Builder Script。
4.将脚本文件名放在那里。5.使用git回购的URL构建。 完成了