iT邦幫忙

0

Jenkins搭配RobotFramework自動化測試

  • 分享至 

  • xImage

Hi,
目前正使用Jenkins+RobotFramwork做自動化測試, 先嘗試照著這篇教學測試, 但在最後要build時候出現腳本命令錯誤, 例如:

'robot' is not recognized as an internal or external command, operable program or batch file.

改成用python執行也無法
我確定使用command prompt是可以直接使用python或robo指令執行的,請問是哪裡沒設定好嗎

阿薩姆 iT邦新手 4 級 ‧ 2020-12-16 14:49:22 檢舉
https://stackoverflow.com/questions/48441320/python-works-fine-on-command-prompt-but-failed-to-run-from-jenkins-and-gives-err

To fix that you may try what worked for me:

first you have to add the parent directory into the windows environment path: from windows start menu search for 'edit the system environment variables' -> 'environment Variables' -> double check the Path -> enter to parent directory of python installation

jenkins - > manage jenkins -> Configure System -> Environment variables -> ADD: Name: path Value: all your parent folders in 1. above (that can be extracted also using the batch command "echo %path%" - copy and past)
阿薩姆 iT邦新手 4 級 ‧ 2020-12-16 14:49:31 檢舉
解了 Thanks
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答