Maven 搭建cucumber 简单示例

时间:2020-07-11 07:54:38
【文件属性】:

文件名称:Maven 搭建cucumber 简单示例

文件大小:6KB

文件格式:7Z

更新时间:2020-07-11 07:54:38

Maven cucumber

Maven 搭建cucumber 简单示例 1.新建Maven 项目 2.Eclipse安装 cucumber 插件:Help->Install New Software->Add name:cucumber location:http://cucumber.github.com/cucumber-eclipse/update-site 3.导入示例项目,右键运行testBaidu.feature 文件run as Cucumber Feature 4.结果如下: @tag Feature: open baidu Starting ChromeDriver 2.26.436362 (5476ec6bf7ccbada1734a0cdec7d570bb042aa30) on port 35183 Only local connections are allowed. @tag1 Scenario: Search Baidu # D:/workspace eclipse/test/src/test/features/testBaidu.feature:5 Given Go to Baidu home page # TestBaiduStepfs.go_to_Baidu_home_page() When Type the search text "selenium" # TestBaiduStepfs.type_the_search_text(String) And Click the submit # TestBaiduStepfs.click_the_submit() Then wait the query result # TestBaiduStepfs.waitTheQueryResult() 1 Scenarios (1 passed) 4 Steps (4 passed) 0m11.806s


【文件预览】:
test
----.project(556B)
----src()
--------test()
--------main()
----target()
--------generated-test-sources()
--------maven-status()
--------generated-sources()
--------classes()
--------surefire-reports()
--------test-classes()
----.settings()
--------org.eclipse.m2e.core.prefs(90B)
--------org.eclipse.jdt.core.prefs(243B)
--------org.eclipse.core.resources.prefs(119B)
----pom.xml(2KB)
----.classpath(1KB)

网友评论

  • 用不了,实在是太基础了