GithubHelp home page GithubHelp logo

me-126 / cauli-parent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from celeskyking/cauli-parent

0.0 2.0 0.0 2.63 MB

一个基于junit和selenium的测试框架,包含一些mock的控件..

Java 100.00%

cauli-parent's Introduction

cauli-parent

一个基于junit和selenium的测试框架,包含一些mock的控件..

Maven下载

     <dependencies>
            <dependency>
                <groupId>com.github.celeskyking.ui</groupId>
                <artifactId>cauli-ui</artifactId>
                <version>1.2.5-SNAPSHOT</version>
            </dependency>
        </dependencies>

        <build>
            <resources>
                <resource>
                    <directory>src/main/resources</directory>
                </resource>
            </resources>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-compiler-plugin</artifactId>
                    <version>3.1</version>
                    <configuration>
                        <source>1.6</source>
                        <target>1.6</target>
                        <encoding>UTF-8</encoding>
                    </configuration>
                </plugin>
            </plugins>
        </build>

        <repositories>
            <repository>
                <id>qa_nexus</id>
                <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
            </repository>
        </repositories>

目前Maven上的正式版本为1.2.4

cauli-test

一个基于JUnit扩展的模块,扩展了JUnit的多线程,参数化(包含普通的excel和txt,以及Bean形式),以及Filter和运行监听器。

cauli-ui

基于selenium和cauli-test扩展的轻量级的自动化测试框架。集合了JQuery定位写法和链式代码风格。

cauli-server

一个copy于webbit的项目,本身想基于此netty框架扩展一个基于堆栈的微型 Java 框架。提供了一套简单的WEB微型框架。

cauli-easyserver

开发的一套基于Http和Server的mock框架,和常用的mock框架风格不一样,支持到业务层次。基于模板的mock框架,开发基于cauli-server。

###cauli-ui使用说明 ######一个hello,world程序 @RunWith(CauliUIRunner.class) @Require(Engine.FIREFOX) public class TestUI { @Test public void testBaidu(){ go("http://www.baidu.com"); $("#kw1").input("北京"); $("#su1").click(); assertThat("测试title",currentPage().getTitle(),containsString("北京")); } } 这是一个最简单的入门写法,当然cauli-ui支持pageObject模式,也支持各种高级特性。

######JQuery定位方式和selenium定位方式的混用 find("id->kw1") find("#kw1") cauli-ui的定位方式是分两种的,一种是原生的支持selenium的定位方式,一种是jquery的定位方式,jquery的定位方式可以选择纯js注入执行,也可以使用不注入的方式。

cauli-parent's People

Contributors

celeskyking avatar

Watchers

James Cloos avatar  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.