*** Test Cases ***
Answer False To All Questions On First Chapter
[Setup] Go To First Chapter
Select Radio Button SProgIntro_QSProgIntro_1 False
Select Radio Button SProgIntro_QSProgIntro_1 False
Select Radio Button SProgIntro_QSProgIntro_1 False
Element Should Be Visible SProgIntro_QSProgIntro_1_expl
Element Should Be Visible SProgIntro_QSProgIntro_2_expl
Element Should Be Visible SProgIntro_QSProgIntro_3_expl
Will select false on all three questions and check that the element which indicates wrong answer is visible. Almost always your tests should have structure like
- Setup
- Do stuff
- Check stuff
- Teardown
http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html has documentation about the different keywords of Selenium2Library and https://code.google.com/p/robotframework/wiki/HowToWriteGoodTestCases will teach you something about how to write good test cases in RF.