- Robot Framework Test Automation
- Sumit Bisht
- 202字
- 2021-07-23 15:21:05
A small exercise
To demonstrate the Robot Framework, we will create a simple dummy application as follows:.
- Create a folder named
simpleapp
, this will serve as the application root folder. - Inside this, create a folder named
testsuites
, this will contain all the test configuration files. - Within the
testsuites
folder create a file,Test_Case_1.txt
, with the following contents:***Test Cases*** First Test Action log this is a basic test
Note
Note that there are two spaces before and after the log keyword.
- Now run the project by calling Pybot script and passing the
testsuites
folder as an argument. You should get something similar to the following screenshot:
This confirms that the project has run successfully. You can view the results and log from generated HTML pages and perform future calculations over the data by using the XML file.
As we used a simple log statement, you get a logged message in the out log, as shown in the following screenshot:

The generated XML is also easy-to-read (as shown in the following screenshot), which can then be used by any other external tool as an input parameter—thereby reducing the human intervention between different stages of testing if this process is also automated.

推薦閱讀
- JMeter 性能測試實戰(第2版)
- 動手玩轉Scratch3.0編程:人工智能科創教育指南
- Web Development with Django Cookbook
- Practical Windows Forensics
- Getting Started with SQL Server 2012 Cube Development
- iOS應用逆向工程(第2版)
- 數據結構與算法分析(C++語言版)
- Angular開發入門與實戰
- Access 2010數據庫應用技術(第2版)
- 微服務從小白到專家:Spring Cloud和Kubernetes實戰
- Qt5 C++ GUI Programming Cookbook
- 零基礎學Python編程(少兒趣味版)
- 微信小程序開發實戰:設計·運營·變現(圖解案例版)
- Unity 5.X從入門到精通
- Blender 3D Cookbook