Changes between Version 4 and Version 5 of DeveloperGuidelines/Testing/EdenTest/WriteTestcase


Ignore:
Timestamp:
06/06/14 19:31:11 (10 years ago)
Author:
Arnav Sharma
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines/Testing/EdenTest/WriteTestcase

    v4 v5  
    3636
    3737*** Test Cases ***
    38 Login with valid email and passwd should be successful #name of the testcase.
     38Login with valid email and valid passwd should be successful #name of the testcase.
    3939    Open Browser        http://${SERVER}/eden/default/user/login   
    4040    Input Text      auth_user_email     admin@example.com
     
    4949
    5050* Run the testsuite login_functionality.txt.   ([http://eden.sahanafoundation.org/wiki/DeveloperGuidelines/EdenTest#UsingEdenTest Using EdenTest])
     51
    5152{{{
    5253pybot tests/implementation/testsuites/login_functionality.txt.
     
    6263As 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. 
    6364
    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.
     65If 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.
    6566
    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'''
     67To 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
     71Please see the article [http://eden.sahanafoundation.org/wiki/DeveloperGuidelines/EdenTest/WriteTestcase/Advanced Advanced Test Design].
     72