如何使用robotframework记录测试案例? [英] How to record test cases with robotframework?

查看:171
本文介绍了如何使用robotframework记录测试案例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近开始将robotframeworkSelenium2Library一起使用.我以前没有使用 Selenium 进行过测试,但是我知道可以使用 Selenium 记录测试.在RobotFramework中,它说,不可能" .我的意思是,即使是简单的登录测试,也需要编写测试,并指定用户名,密码和提交按钮的ID.

I recently started using robotframework with the Selenium2Library. I haven't tested using Selenium before, but I know it is possible to record tests using Selenium. In RobotFramework, it says, "it is not possible". I mean even for a simple login test, I need to write the test, specifying the id of username, password and submit button.

但是,有什么方法可以使用robotframework记录这些测试?例如单击文本框,输入字符串,然后单击提交"按钮等,并自动生成测试用例源代码,而无需我编写测试用例.
robotframework或它支持的任何external library是否可能?

However, is there any way by which these tests can be recorded using robotframework? such as clicking on a text box, entering a string and then clicking on submit button etc., and automatically generate the test case source code instead of having me to write the test cases.
Is this possible with robotframework or any external library that it supports?

推荐答案

使用此Firefox附加组件

Using this Firefox add-on, FireRobot we can generate most of the code and also using this you can select the elements on the screen and get related code suggestions on right click like
Wait Until Element Is Visible
Click Element
and all operations to perform on the selected element.

这篇关于如何使用robotframework记录测试案例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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