简体   繁体   English

如何编写功能测试,使用Robot Framework驱动Selenium

[英]How to write functional tests, to drive Selenium using Robot Framework

I have installed python2.7.3 and robotframework2.7.7 on Windows7. 我在Windows7上安装了python2.7.3和robotframework2.7.7。 Now I want to write some example test cases and execute them with Robot Framework by using Selenium. 现在,我想编写一些示例测试用例,并使用Selenium使用Robot Framework执行它们。

How can I do that? 我怎样才能做到这一点?

  1. Download "robotframework-seleniumlibrary-2.9.1.win32.exe" and install it 下载“robotframework-seleniumlibrary-2.9.1.win32.exe”并进行安装
  2. Download "robotframework-seleniumlibrary-demo-20110131.zip" and unzip it 下载“robotframework-seleniumlibrary-demo-20110131.zip”并解压缩
  3. Open a command prompt and go to the unzipped folder location (at step 2) 打开命令提示符并转到解压缩的文件夹位置(在步骤2)
  4. Execute the following command to run all tests in a directory: 执行以下命令以运行目录中的所有测试:
    rundemo.py login_tests rundemo.py login_tests
  5. Open report.html to view the result 打开report.html以查看结果

Download link is https://code.google.com/p/robotframework-seleniumlibrary/downloads/list 下载链接是https://code.google.com/p/robotframework-seleniumlibrary/downloads/list

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM