Code Monkey home page Code Monkey logo

dagger's Introduction

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.

dagger's People

Contributors

chenkan avatar sephinroth avatar andrewleo avatar croath avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.