如何在grails中创建功能测试目录 [英] How to create functional test directory in grails

查看:145
本文介绍了如何在grails中创建功能测试目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在grails中创建功能测试。我有集成和单元测试。但我无法创建功能测试目录。我正在使用grails 2.4.5版本解决方案

Grails 2没有提供功能测试功能。请注意此处的文档。推荐使用插件进行功能测试。


Grails不支持直接编写功能测试
,但有几个插件可用于此目的。 p>

Canoo Webtest - http://grails.org/plugin/webtest



G-Func - http: //grails.org/plugin/functional-test



Geb - http://grails.org/plugin/geb



Selenium-RC - http://grails.org/plugin/selenium-rc

WebDriver - http://grails.org/plugin/webdriver



请参阅每个插件的文档以了解其功能。


Grails 3具有以下功能:使用Geb框架创建功能测试,如这里


默认情况下,Grails支持使用Geb框架编写功能测试
。要创建一个功能测试,您可以使用
create-functional-test命令创建一个新的功能
test



I am trying to create functional tests in grails. I have integration and unit tests. But i am unable to create functional tests directory. I am using grails 2.4.5 version

解决方案

Grails 2 does not ship with functional testing capabilities. Noted in the documentation here. Using a plugin for functional testing is the recommended practice.

Grails does not ship with any support for writing functional tests directly, but there are several plugins available for this.

Canoo Webtest - http://grails.org/plugin/webtest

G-Func - http://grails.org/plugin/functional-test

Geb - http://grails.org/plugin/geb

Selenium-RC - http://grails.org/plugin/selenium-rc

WebDriver -http://grails.org/plugin/webdriver

Consult the documentation for each plugin for its capabilities.

Grails 3 does ship with the ability to create functional testing using the Geb framework as documented here:

Grails by default ships with support for writing functional tests using the Geb framework. To create a functional test you can use the create-functional-test command which will create a new functional test

这篇关于如何在grails中创建功能测试目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆