差異處

這裏顯示兩個版本的差異處。

連向這個比對檢視

Both sides previous revision 前次修改
下次修改
前次修改
rf:rf [2017/11/15 16:12]
tony [Resource]
rf:rf [2023/06/25 09:48] (目前版本)
行 33: 行 33:
   * [[.:​rf:​keyword_design|Keyword Design]] ​   * [[.:​rf:​keyword_design|Keyword Design]] ​
   * [[.:​rf:​migrateToSelenium2Library|Migrate SeleniumLibrary to Selenium2Library]] ​   * [[.:​rf:​migrateToSelenium2Library|Migrate SeleniumLibrary to Selenium2Library]] ​
 +  * [[.:​rf:​basic:​set_test_message|How to set message of report?]] 如何在測試報表中設定我想要的訊息?​
 === 語法 === === 語法 ===
   * [[.:​rf:​condition_trap|Condition Trap]]   * [[.:​rf:​condition_trap|Condition Trap]]
行 43: 行 44:
 ==== 應用篇 ==== ==== 應用篇 ====
 === Keywords === === Keywords ===
-  * [[.:​rf:​wait_keywords|Wait Something Keywords]] 用等待關鍵字讓測試案例更可靠! ​(改進中)+  * [[.:​rf:​wait_keywords|Wait Something Keywords]] 用等待關鍵字讓測試案例更可靠!
   * [[.:​rf:​getSuiteDirectory|Get Suite Directory]] 以TestSuite路徑位置去做為相對路徑吧!   * [[.:​rf:​getSuiteDirectory|Get Suite Directory]] 以TestSuite路徑位置去做為相對路徑吧!
   * [[.:​rf:​fail_screenshot|Failure Screenshot]] 生死一瞬間,捕捉錯誤畫面。   * [[.:​rf:​fail_screenshot|Failure Screenshot]] 生死一瞬間,捕捉錯誤畫面。
行 51: 行 52:
   * [[.:​rf:​reserveFile|Reserve File]] 如何保留重要檔案並從Report中下載?​   * [[.:​rf:​reserveFile|Reserve File]] 如何保留重要檔案並從Report中下載?​
   * [[.:​rf:​runKWIfKWPorF|Run Keyword If Keyword Pass/​Failed]] 如何讓關鍵字Pass/​Failed時,執行對應動作?​   * [[.:​rf:​runKWIfKWPorF|Run Keyword If Keyword Pass/​Failed]] 如何讓關鍵字Pass/​Failed時,執行對應動作?​
 +  * [[.:​rf:​wget|wget]] 下載網頁上的資料
 === Plugins === === Plugins ===
   * [[.:​rf:​hot_key|How to test Hot Key in Robot?]] 註: 可改透過Import Library方式使用   * [[.:​rf:​hot_key|How to test Hot Key in Robot?]] 註: 可改透過Import Library方式使用
行 59: 行 61:
 === Special === === Special ===
   * [[rf:​rf:​exe_javascript|Execute Javascript]] 蒐集使用過的腳本   * [[rf:​rf:​exe_javascript|Execute Javascript]] 蒐集使用過的腳本
-==== 解決問題 ====+=== Debug === 
 +  * [[rf:​rf:​debug:​trace_exception_of_javalib|How to trace the exception of java keyword library?]] 如何Trace java keyword library拋出的例外?​ 
 +==== 測試上所遇到的問題 ====
   * [[.:​rf:​qa|Q&​A]]   * [[.:​rf:​qa|Q&​A]]
   * [[.:​rf:​launch_ff_problem_on_win|Jython+Selenium2Library無法在Windows上啟動Firefox]]   * [[.:​rf:​launch_ff_problem_on_win|Jython+Selenium2Library無法在Windows上啟動Firefox]]
   * [[.:​rf:​howToAssertMultipleTextNode|How to assert multiple text node?]]   * [[.:​rf:​howToAssertMultipleTextNode|How to assert multiple text node?]]
-=== Choose File在Remote Selenium上的問題 ​=== +  * [[.:​rf:​noActiveSessionProblem|No active session with ID problem]] 
-如果透過Remote Selenium Server去執行測試,在跑Robot上的測試資料該如何讓遠端機器取得呢?​ 經過爬文發現,Selenium2Library的Choose File已解決這問題;如果是自己寫code使用selenium,可以參考第三個連結(through File Detector)。 +  * [[.:​rf:​StaleElementReferenceException|StaleElementReferenceException:​ Message: stale element reference: element is not attached to the page document]] 
-  * [[https://​github.com/​robotframework/​Selenium2Library/​issues/​445|upload file on remote selenium server]] +  * [[.:​rf:​ssl_certificate_problem_on_ie11|SSL Certificate Error On IE11]] 
-  * [[https://​github.com/​robotframework/​Selenium2Library/​issues/​449|Update documentation on Choose File to show that it supports remote uploading]] +  * [[.:​rf:​choose_file_with_remote_selenium|Choose File在Remote Selenium上的問題]] 
-  * [[http://​sauceio.com/​index.php/​2014/​01/​remote-file-uploads-with-selenium-php/​|Remote file uploads with Selenium & PHP]] +  * [[.:​rf:​troubles:​chrome:​element_is_not_clickable|Element is not clickable issue on chrome]] 
-目前Windows上常常有卡住的問題,即使設定timeout也無法解決:​ +  * [[.:​rf:​unused_default_setup_and_teardown|設定無效的Default Test Setup與Teardown]] 
-  * [[https://​github.com/​seleniumhq/​selenium-google-code-issue-archive/​issues/​3858|related issue]] 這個issue中有人使用2.4x版本,我們是使用2.48 +  * [[.:​rf:​ctl_scrollbar_of_div|如何控制div上的scrollbar?​]] 
-根據[[https://raw.githubusercontent.com/​SeleniumHQ/​selenium/​master/​cpp/​iedriverserver/​CHANGELOG|IE driver changelog]]內容,3.3版本後應該要有解。+  * [[.:rf:​oom_java_heap_space|WebDriverException:​ Message: Java heap space]] 
 +  ​* ​[[.:rf:​upgrade:​3.0to3.1.2|升級RobotFramework從3.0到3.1.2]]
 ===== Resource ===== ===== Resource =====
   * [[http://​code.google.com/​p/​robotframework/​|RobotFramework Web Site]]   * [[http://​code.google.com/​p/​robotframework/​|RobotFramework Web Site]]
行 88: 行 93:
   * [[https://​blog.codecentric.de/​en/​2012/​02/​recording-robot-framework-keywords-with-selenium-ide/​|Recording Robot Framework Keywords with Selenium IDE]] - 將Selenium IDE腳本轉為Robot Keywords   * [[https://​blog.codecentric.de/​en/​2012/​02/​recording-robot-framework-keywords-with-selenium-ide/​|Recording Robot Framework Keywords with Selenium IDE]] - 將Selenium IDE腳本轉為Robot Keywords
   * [[http://​robotframework.net/​]]   * [[http://​robotframework.net/​]]
 + 
 ===== Quality ===== ===== Quality =====
   * [[http://​www.slideshare.net/​pekkaklarck/​robot-framework-dos-and-donts|Do ant Don'​t]] [[http://​blog.castman.net/​programming/​2016/​07/​28/​robotframework.html|中文介紹]]   * [[http://​www.slideshare.net/​pekkaklarck/​robot-framework-dos-and-donts|Do ant Don'​t]] [[http://​blog.castman.net/​programming/​2016/​07/​28/​robotframework.html|中文介紹]]
   * [[http://​code.google.com/​p/​robotframework/​wiki/​HowToWriteGoodTestCases|How to write good testcaes?]]   * [[http://​code.google.com/​p/​robotframework/​wiki/​HowToWriteGoodTestCases|How to write good testcaes?]]
 +  * [[https://​mestachs.wordpress.com/​2012/​08/​13/​selenium-best-practices/​|Selenium Best Practices]]
 +===== Resource - Libraries =====
 +  * [[https://​blog.csdn.net/​happyjxt/​article/​details/​50582328|Screenshot Library用法解析]]
 ===== Resource - Selenium2Library ===== ===== Resource - Selenium2Library =====
   * [[http://​stackoverflow.com/​questions/​6101461/​how-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib|點擊invisible imte的問題]]   * [[http://​stackoverflow.com/​questions/​6101461/​how-to-force-selenium-webdriver-to-click-on-element-which-is-not-currently-visib|點擊invisible imte的問題]]