3 Star 4 Fork 2

王连平 / Dagger

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

Dagger - a light, robust Web UI autotest framework

Dagger is a light, robust Web UI autotest framework based on Selenium and TestNG.(中文介绍参见这里

Dagger is an automation framework first, it provides APIs to control browsers;

Dagger is a test framework then, it uses TestNG to organize testcases and TestNG's assertions are embedded in APIs above;

Dagger is a design style at last: the framework and the testcases based on it both should be light and straightforward.

Features

  • Easy to learn while only less than 30 APIs altogether, see this.
  • High speed with parallel mode which is indeed TestNG's feature, see this
  • Re-run failed test cases using Arrow, see this.
  • Use Chrome as default browser which is much quicker and more stable than all Firefox, IE and Safari.
  • Firefox, IE and Safari are also supported.
  • Capture screenshot automatically when testcase fails.
  • Support data-driven testing.
  • Contrast images and compare differences by crawling page elements and screenshots on the pixel level.
  • Support Flash automation testing.

How to Use

Dagger is quite suitable for a small group to kick off Web UI autotest. For this case, just checkout Dagger and configure maven with Eclipse and then write testcases with it.

Already have an autotest framework? Please build Dagger into a .jar file before use, the steps are as follows:

  • Checkout Dagger's source code
  • Enter the root directory
  • Run mvn clean package -DskipTests in terminal

Then fetch dagger-1.3.jar under target folder, or just download the dagger-1.3.jar. See this for more details.

Currently, we use selenium-server-standalone-2.39.0.jar and selenium-safari-driver-2.39.0.jar , you can change the configuration in the pom.xml.

By the way, you should download the chromedriver_for_win_2.3.exe and iedriver_win32_2.39.0.exe if necessary. We suggest to put the .exe files in the res folder.

Contributors

  • NetEase, Inc.
  • chenDoInG

How to Contribute

You are welcome to contribute to Dagger as follow

  • add/edit wiki
  • report/fix issue
  • code review
  • commit new feature
  • add testcase/demo

Meanwhile you'd better follow the rules below

  • It's NOT recommended to submit a pull request directly to Dagger's master branch. develop branch is more appropriate
  • Follow common Java coding conventions
  • Put all Java class files under com.netease package
  • Add the following license in each Java class file

License

(The Apache License)

Copyright (c) 2012-2014 NetEase, Inc. and other contributors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

空文件

简介

a Web UI autotest framework based on Selenium and TestNg 展开 收起
Java
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/thunms/Dagger.git
git@gitee.com:thunms/Dagger.git
thunms
Dagger
Dagger
master

搜索帮助