简体   繁体   English

在测试环境中手动测试Rails应用

[英]Test Rails app manually, in the test environment

I am using Capybara, RSpec, and Selenium to test the filling out and submission of a form in my application. 我正在使用Capybara,RSpec和Selenium来测试我的应用程序中表单的填写和提交。 However, despite filling out the form completely, it results in validation errors. 但是,尽管完全填写了表格,但仍会导致验证错误。

Is there a way to test the form manually in the browser, in the test environment ? 有没有一种方法可以在测试环境中的浏览器中手动测试表单?

Manual testing using automation test is contradictory. 使用自动化测试进行手动测试是矛盾的。 Better debug the test :) You can view what's happening in the browser by entering BROWSER=chrome at the beginning of the spec callout in terminal. 更好地调试测试:)您可以通过在终端规范标注的开头输入BROWSER=chrome来查看浏览器中发生的情况。 And next thing - if you get validation errors, maybe there's something wrong with your input? 接下来的事情-如果您收到验证错误,也许您输入的内容有问题? Can you show the test and the error here? 您可以在此处显示测试和错误吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM