Changes between Version 4 and Version 5 of DeveloperGuidelines/Testing/EdenTest/WriteTestcase
- Timestamp:
- 06/06/14 19:31:11 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DeveloperGuidelines/Testing/EdenTest/WriteTestcase
v4 v5 36 36 37 37 *** Test Cases *** 38 Login with valid email and passwd should be successful #name of the testcase.38 Login with valid email and valid passwd should be successful #name of the testcase. 39 39 Open Browser http://${SERVER}/eden/default/user/login 40 40 Input Text auth_user_email admin@example.com … … 49 49 50 50 * Run the testsuite login_functionality.txt. ([http://eden.sahanafoundation.org/wiki/DeveloperGuidelines/EdenTest#UsingEdenTest Using EdenTest]) 51 51 52 {{{ 52 53 pybot tests/implementation/testsuites/login_functionality.txt. … … 62 63 As you can see, the name of the testcase is very descriptive and describes the objective. '''Open Browser''', '''Input Text''', '''Click Button''' and '''Page Should Contain''' are all keywords (functions) implemented in Selenium2Library. The beauty of writing tests this way is that they are easy to read and understand, thus eliminating the need to explain them. 63 64 64 If you have understood how the above above testcase is written, try writing the testcase '''Login with invalid email and passwd should fail'''. It should be fairly simple.65 If you have understood how the above above testcase is written, try writing the testcase '''Login with invalid email and valid passwd should fail'''. It should be fairly simple. 65 66 66 To understand the selenium keywords visit [http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html Selenium2Library Keyword Documentation] and the documentation of keywords implemented under !EdenTest in '''tests/docs''' 67 To understand the selenium keywords visit [http://rtomac.github.io/robotframework-selenium2library/doc/Selenium2Library.html Selenium2Library Keyword Documentation] and the documentation of keywords implemented under !EdenTest in '''tests/docs'''. 68 69 == Advanced Test Design == 70 71 Please see the article [http://eden.sahanafoundation.org/wiki/DeveloperGuidelines/EdenTest/WriteTestcase/Advanced Advanced Test Design]. 72