Ignore:
Timestamp:
May 29, 2011, 4:28:17 PM (13 years ago)
Author:
gav
Message:

Add @Unroll (optional/commented) to LoginSpec.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/features/purchaseOrders/test/functional/LoginSpec.groovy

    r949 r950  
    33import gnumims.functional.pages.LogoutPage
    44import spock.lang.Stepwise
     5import spock.lang.Unroll
    56
    67@Stepwise
     
    3233    }
    3334
     35    //@Unroll("Username: '#username' with password: '#password' should fail to login.")
    3436    def "If we type in the wrong password or username"() {
    3537        expect:
     
    4143        username  | password
    4244        'admin'   | 'bogus' /* Bogus Password. */
    43         'admin'   | ''      // Blank.
     45        'admin'   | ''      // None.
     46        'admin'   | ' '      // Blank.
    4447        'admin'   | 'PASS'  // Capitals
    4548        'admin'   | 'Pass'  // First Capital.
     
    4750        'admin'   | 'pas'   // One letter short.
    4851        'admin'   | 'passs' // One letter longer.
     52        'admin'   | ' pass' // Leading space.
    4953        'admin'   | 'pass ' // Trailing space.
    5054        'admin'   | '*'     // Star Wildcard.
     
    5458        'admin'   | 'pas%'  // Percentage Wildcard in pattern.
    5559        'bogus'   | 'pass'  /* Bogus Username. */
    56         ''        | 'pass'  // Blank
     60        ''        | 'pass'  // None
     61        ' '       | 'pass'  // Blank
    5762        'ADMIN'   | 'pass'  // Capitals
    5863        'Admin'   | 'pass'  // First Capital.
     
    6065        'admi'    | 'pass'  // One letter short.
    6166        'adminn'  | 'pass'  // One letter longer.
     67        //' admin'  | 'pass' // Leading space.
    6268        //'admin '  | 'pass' // Trailing space.
    6369        '*'       | 'pass'  // Star Wildcard.
Note: See TracChangeset for help on using the changeset viewer.