差異處
這裏顯示兩個版本的差異處。
下次修改 | 前次修改 | ||
rf:rf:ride [2013/02/24 23:34] 127.0.0.1 外部編輯 |
rf:rf:ride [2023/06/25 09:48] (目前版本) |
||
---|---|---|---|
行 1: | 行 1: | ||
{{tag>RobotFramework}} | {{tag>RobotFramework}} | ||
====== Run Testcases With RIDE ====== | ====== Run Testcases With RIDE ====== | ||
- | RobotFramework有提供一個IDE叫RIDE,安裝可參考[[https://github.com/robotframework/RIDE/wiki/Installation-Instructions|官網]]或參考我的[[linux:how_to_install_in_linux:robot_framework:robot_ide|Ubuntu安裝過程]]。這篇文章主要教大家如何在寫完testcases後,可以透過RIDE去執行testcases。首先在你的[[.:portable_robot_package|portable-robot]]目錄中新增runtest.sh,內容如下: | + | RobotFramework有提供一個IDE叫RIDE,安裝可參考[[https://github.com/robotframework/RIDE/wiki/Installation-Instructions|官網]]或參考我的[[linux:software_installation:robot_framework:robot_ide|Ubuntu安裝過程]]。這篇文章主要教大家如何在寫完testcases後,可以透過RIDE去執行testcases。首先在你的[[.:portable_robot_package|portable-robot]]目錄中新增runtest.sh,內容如下: |
<code bash> | <code bash> | ||
#!/bin/sh | #!/bin/sh | ||
行 19: | 行 19: | ||
是不是看到設定的參數BROWSER:firefox已經被log到report中了呢? | 是不是看到設定的參數BROWSER:firefox已經被log到report中了呢? | ||
+ | |||
+ | ===== runtest.bat ===== | ||
+ | <code bash> | ||
+ | @echo off | ||
+ | |||
+ | set BASE=%~dp0 | ||
+ | |||
+ | cd /d "%BASE%" | ||
+ | |||
+ | java -jar "%BASE%robotframework.jar" %* | ||
+ | |||
+ | exit /b %errorlevel% | ||
+ | </code> | ||
+ | |||
+ | |||
+ | ===== ===== | ||
+ | ---- | ||
+ | \\ | ||
+ | ~~DISQUS~~ |