使用Robot Framework集成Selenium的自动化测试(二)
环境安装完以后,就可以开始写一个测试类来测试下。
定义一个sample.txt的文件
*** Settings ***Documentation This is my first to start firefox to access google.comLibrary SeleniumLibrary*** Variables ***${BROWSER} *firefox${DELAY} 0${LOGIN URL} http://www.google.cn/*** Test Cases ***Valid Login Open Browser ${LOGIN URL} ${BROWSER} Maximize Browser Window Set Selenium Speed ${DELAY} [Teardown] Close Browser
Failed to start new browser session: Error while launching browser