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 - First Test Case Using Ride
我们将探讨国际民主和选举援助学会,并就我们的第一个测试案例开展工作。
开放式航道,或者你可以在你的台上制造ide。
From command pne
ride.py
From Desktop
进入安装电ide的道路;窗户为C:Python27 /b>。
![From Desktop](/robot_framework/images/from_desktop.jpg)
右翼。 页: 1 To -> (create shortcut).
![Send Desktop](/robot_framework/images/send_desktop.jpg)
您现在将看到 desktop一.。 你们可以点击,开 r编辑。
让我们从我们的第一个考验开始。 开放编辑,点击文件——> 新项目。
![First Test Case](/robot_framework/images/first_test_case.jpg)
Cpck on New Project and into the name of the project.
![New Project](/robot_framework/images/new_project.jpg)
家长名录是拯救项目的道路。 如果需要,你可以改变道路。 我创建了一个称为机器人的文件夹,并将拯救该笔文件的所有档案。
![Parent Directory](/robot_framework/images/parent_directory.jpg)
项目第一个试验项目。
为创建测试案例,该项目的正确点。
![right cpck](/robot_framework/images/right_cpck.jpg)
Cpck New Test Case 。
![New Test Case Exx](/robot_framework/images/new_test_case_exx.jpg)
查阅测试案件的名称并点击K。
![name the test case](/robot_framework/images/name_the_test_case.jpg)
测试案例显示有3个表格——Edit, 文本Edit和Run。
Edit tab有两种格式:背景和方言。 我们将在今后的章节中讨论这两种形式。
The Settings Format
在环境中,我们有文件、编造、流泪、标签、停用和模板。
Documentation
你可以补充有关你的测试案例的细节,以便今后能够参考。
![Documentation](/robot_framework/images/documentation.jpg)
Cpck OK,以节省文件。
Setup and Teardown
如果为试验案件指定了一套装置,则将在试办案前执行,并在试办案后进行测试。 我们将在以后各章中详细阐述这个问题。 我们现在不需要它来做第一次考验,并且能够保持空洞。
Tags
用于标记测试案例——不包括特定测试案例。 您还可以指出,任何测试案例是否至关重要。
Timeout
用于确定试验案的时间。 我们现在将保持空洞。
Template
这将有关键词可用于测试案件。 大部分用于数据驱动测试。 模板中具体规定了高级别用户定义的关键词,测试案例将数据传送到关键词。
在表格格式中,我们将撰写我们的第一个测试案例,并照此办理。
在这一试验案例中,我们只是增加一些标志,看它的产出。 考虑下面的屏幕以了解这一点:
![tabular format](/robot_framework/images/tabular_format.jpg)
我们利用了以下关键词: Carlo,以记录上述信息。
根据Edit具体指明的关键词,我们可以在文本Edit中找到如下内容:
![keywords specified](/robot_framework/images/keywords_specified.jpg)
您也可在文本Edit中撰写测试案例,并将以表格形式反映。 现在,让我们坚持试验,看看产出。
为了处理试验案例,我们需要点击“开始”如下:
![reflect tabular format](/robot_framework/images/reflect_tabular_format.jpg)
试办案的输出是一开始即刻的。
![output](/robot_framework/images/output.jpg)
我们的测试案例已经成功执行,详情见上文。 它给予PASS的地位。
我们还可以在下文所强调的报告和记录中看到试验案例执行的细节。
![case execution](/robot_framework/images/case_execution.jpg)
报告栏目中的细节如下:
![case Report](/robot_framework/images/case_report.jpg)
报告提供了详细资料,如起算时间、结束时间、对记录档案的通向、测试案件的状况等。
Cpck onlog at the high right toper in report or from the Run Screen.
此处是记录档案的细节——
![log file](/robot_framework/images/log_file.jpg)
记录文件提供了试验执行的细节和我们为测试案件提供的关键词的细节。
在报告和记录中,我们获得地位绿色。
现在,让我们作出一些改变,导致试办案失败,看到产出。
![log output](/robot_framework/images/log_output.jpg)
在上述测试案件中,Log关键词是错误的。 我们将处理试验案例,看到产出——
![log keyword](/robot_framework/images/log_keyword.jpg)
我们认为,测试案例已经失败。 我强调了它对测试案例的错误。
现在将看到报告和产出。 摘自报告
![log output Report](/robot_framework/images/log_output_report.jpg)
From Log
![From Log](/robot_framework/images/from_log.jpg)
试办案失败后,彩色被改为红。
Conclusion
在本章中,我们涉及一个简单的测试案例,在执行期间所看到的结果也显示了。 报告和记录显示测试案例执行的细节。
Advertisements