背景:实习生功能测试都未能
让我的基础架构正确设置有针对一组VM实习生运行功能测试后。所有机器都存在于同一个网络上。
我正在使用实习生来运行我的功能测试。
*不使用酱汁实验室,而是使用硒网格2 - 集线器&节点。
问题:
所有功能的测试用例执行失败。
Error: Student Name field should contain same string that was entered: expected '' to equal 'qwerty' AssertionError: Student Name field should contain same string that was entered: expected '' to equal 'qwerty'
观察:
我看到的表单字段越来越填写,但是当我做的断言 - 这是为获取文本,并与预期的输入相匹配那么简单,我得到的错误响应7.
我试过了什么 这是功能测试用例的典型锅炉板。
studentName: function() {
return this.remote
.get('http://some.ip.addr:3000/#students')
.elementById('name')
.clickElement()
.type('qwerty')
.end()
.elementById('name')
.text()
.then(function(resultText){
assert.equal(resultText, 'qwerty', 'Student Name field should contain same string that was entered');
});
}
其他注释:
Link to Status Response Codes that are mentioned above