Robot Framework Tutorial
- Robot Framework - Discussion
- Robot Framework - Useful Resources
- Robot Framework - Quick Guide
- Testing Login Page Using Robot Framework
- Working With External Database libraries
- Working with Built-In Library
- Working With Setup And Teardown
- Working With Command Line
- Working With Variables
- Working With Keywords
- Working With Dropdown
- Working With Checkbox
- Working With Radio Button
- Working With Textbox
- Working With Browsers Using Selenium Library
- Keyword and Data Driven Test Cases
- Writing and Executing Test Cases
- First Test Case Using Ride
- Introduction to Ride
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Robot Framework - Working With Radio Button
在测试方面,必须了解如何与浏览器互动,并确定html的内容。 以机器人框架与投入领域合作非常容易。 在本章中,我们将学习如何利用Selenium图书馆与广播电台纽顿合作。 为了与无线电台合作,我们需要定位器——该无线电台的主要独特标识。
我们将在此讨论以下事项:
Project Setup for Radio Button Testing
Test case for Radio Button
Project Setup For Radio Button Testing
我们将首先在里德建立一个与浏览器合作的项目。 露天使用ide。 页: 1

Cpck New Project and into Name of their project as reflected in the Screenshot below.

姓名是Button电台。 Cpck on OK button to Save the project.
Right-cpck on the name of the project estabpshing and Point on New Test Case


Give name to the test case and Point OK to Save it. 我们是在项目建立过程中进行的,现在将撰写无线电台的测试案例。 由于我们需要Selenium图书馆,我们必须在我们的项目中进口同样的图书馆。
http://www.un.org/Depts/DGACM/index_chinese.htm

在点击图书馆时,将显示需要进入图书馆名称的屏幕。

将在现场展示Kpck和图书馆。

名称必须与安装在现场包装的复印机名称相符。 如果名称不匹配,则按下文所示方式重新编号:

Test Case for Radio Button
无线电塔顿试验场将在定位器的帮助下选定一个无线电台。
考虑在广播台上展示以下的html
<input type="radio" name="gender" value="male" checked> Male<br/> <input type="radio" name="gender" value="female"> Female<br/>
无线电台 姓名 是定位器。 在上述例子中, 姓名为: 我们还需要这种价值,以便我们能够选择我们想要的无线电台。 以上例子中的数值为Male和Women。
现在,我们将用无线电台制作一个试验台,并在浏览器上打开。 现在,选择无线电塔顿的价值。 测试案例的细节如下:
开放浏览器——URL——http:// localhost/robotframework/radiobutton.html in
进入无线电台的详细信息
排除测试案例
在撰写测试案例的关键词时,Ctrl + Spacebar。 你将获得指挥的细节。 顿电台详情

对无线电台来说,论点是团体名称和价值。 The details of the test case for Radio button selected -

下面是无线电台的测试页。

Html Code for Radiobutton. html
<html> <head> <title>Radio Button</title> </head> <body> <form name="myform" method="POST"> <b>Select Gender?</b> <span><br/> <input type="radio" name="gender" value="male" checked> Male<br/> <input type="radio" name="gender" value="female"> Female<br/> </span> </form> </body> </html>
在上述形式中,我们计划选择女性,这是一个无线电台。 在测试案例中给出了名称和价值。 现在,我们将执行测试案例,并检查上述表格的检查箱的挑选情况。
让我们执行试验案例,看到浏览器的显示——

试办案时,它开放了URL http:// localhost/robotframework/radiobutton.html,并选择了在测试案件中我们所给出姓名和价值的女性广播电台。
参看Ride-执行细节。

我们现在看一下报告和记录,以便了解更多细节。
Report Details

Log Details

Details of test cases

Conclusion
我们看到如何通过将无线电台的集团名称赋予试验场,来选择无线电台的数值。 利用机器人框架和图书馆进口的可用关键词,我们可以找到无线电台,并选择无线电塔顿的价值。 我们确实掌握了使用机器人框架记录和报告所实施的试验场的细节。
Advertisements