Skip to content

Instantly share code, notes, and snippets.

@rayleigh
Created January 6, 2011 22:35
Show Gist options
  • Save rayleigh/768744 to your computer and use it in GitHub Desktop.
Save rayleigh/768744 to your computer and use it in GitHub Desktop.
Contact page test
t/integration/contact.t ..
ok 1 - Check the form page
ok 2 - Check form page html (http://localhost:3000/contact/form)
ok 3 - Title is there
ok 4 - Check if category was added
not ok 5 - The form has name as an input.
# Failed test 'The form has name as an input.'
# at t/integration/contact.t line 21.
ok 6 - Check if category was added
not ok 7 - The form has email as an input.
# Failed test 'The form has email as an input.'
# at t/integration/contact.t line 21.
ok 8 - Check if category was added
not ok 9 - The form has subject as an input.
# Failed test 'The form has subject as an input.'
# at t/integration/contact.t line 21.
not ok 10 - The form has textarea to put message.
# Failed test 'The form has textarea to put message.'
# at t/integration/contact.t line 23.
Use of uninitialized value $value in pattern match (m//) at /home/ray/cxgn/local-lib/lib/perl5/Config/General.pm line 872.
Use of uninitialized value $value in pattern match (m//) at /home/ray/cxgn/local-lib/lib/perl5/Config/General.pm line 872.
Use of uninitialized value $value in pattern match (m//) at /home/ray/cxgn/local-lib/lib/perl5/Config/General.pm line 872.
Use of uninitialized value $value in pattern match (m//) at /home/ray/cxgn/local-lib/lib/perl5/Config/General.pm line 872.
Use of uninitialized value $value in pattern match (m//) at /home/ray/cxgn/local-lib/lib/perl5/Config/General.pm line 872.
Use of uninitialized value $value in pattern match (m//) at /home/ray/cxgn/local-lib/lib/perl5/Config/General.pm line 872.
ok 11 - GET /solpeople/top-level.pl
ok 12 - Content contains "Login"
ok 13 - submitted login form
ok 14 - did not get "Incorrect username"
ok 15 - did not get "Incorrect password"
ok 16 - Check the form page
ok 17 - Check form page html (http://localhost:3000/contact/form)
ok 18 - Title is there
not ok 19 - Check if user logs in, name will go on form.
# Failed test 'Check if user logs in, name will go on form.'
# at t/integration/contact.t line 44.
ok 20 - logged out
ok 21 - GET /solpeople/top-level.pl
ok 22 - Content contains "Login"
ok 23 - submitted login form
ok 24 - did not get "Incorrect username"
ok 25 - did not get "Incorrect password"
ok 26 - Check the form page
ok 27 - Check form page html (http://localhost:3000/contact/form)
ok 28 - Title is there
not ok 29 - Check if user logs in, email will go on the form.
# Failed test 'Check if user logs in, email will go on the form.'
# at t/integration/contact.t line 52.
ok 30 - logged out
ok 31 - GET /solpeople/top-level.pl
ok 32 - Content contains "Login"
ok 33 - submitted login form
ok 34 - did not get "Incorrect username"
ok 35 - did not get "Incorrect password"
ok 36 - Check the form page
ok 37 - Check form page html (http://localhost:3000/contact/form)
ok 38 - Title is there
not ok 39 - Check if user logs in and does not have name, name won't go on.
# Failed test 'Check if user logs in and does not have name, name won't go on.'
# at t/integration/contact.t line 61.
ok 40 - logged out
ok 41 - GET /contact/form
# Sending complete form from form page
ok 42 - Check submitting; filled out form was sent.
ok 43 - See if form is sent successfully
ok 44 - Check submit page html (http://localhost:3000/contact/submit)
# Sending empty form from form page
ok 45 - Check submitting; Empty form is being sent
ok 46 - body should show error message
ok 47 - email should show error message
ok 48 - subject should show error message
ok 49 - name should show error message
# Sending empty form from submit page
ok 50 - Check submitting; Empty form is being sent
ok 51 - body should show error message
ok 52 - email should show error message
ok 53 - subject should show error message
ok 54 - name should show error message
# Sending full form from submit page
ok 55 - Check submitting; filled out form was sent.
ok 56 - See if form is sent successfully
ok 57 - Check submit page html (http://localhost:3000/contact/submit)
ok 58 - Form with body filled in sent 0 time(s)
ok 59 - Email should show error message
ok 60 - Message should not show error message
ok 61 - Subject should show error message
ok 62 - Name should show error message
ok 63 - Form with body unfilled sent 0 time(s)
ok 64 - email should not show error message
ok 65 - Body should show error message
ok 66 - subject should not show error message
ok 67 - name should not show error message
ok 68 - Form with body filled in sent 1 time(s)
not ok 69 - Email should show error message
# Failed test 'Email should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Email)|(Message) is required)'
ok 70 - Message should not show error message
not ok 71 - Subject should show error message
# Failed test 'Subject should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Subject)|(Message) is required)'
not ok 72 - Name should show error message
# Failed test 'Name should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Name)|(Message) is required)'
ok 73 - Form with body unfilled sent 1 time(s)
ok 74 - email should not show error message
ok 75 - Body should show error message
ok 76 - subject should not show error message
ok 77 - name should not show error message
ok 78 - Form with name and body filled in sent 0 time(s)
ok 79 - Email should show error message
ok 80 - Message should not show error message
ok 81 - Subject should show error message
ok 82 - name should not show error message
ok 83 - Form with name and body unfilled sent 0 time(s)
ok 84 - email should not show error message
ok 85 - Body should show error message
ok 86 - subject should not show error message
ok 87 - Name should show error message
ok 88 - Form with name and body filled in sent 1 time(s)
not ok 89 - Email should show error message
# Failed test 'Email should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Email)|(Message) is required)'
ok 90 - Message should not show error message
not ok 91 - Subject should show error message
# Failed test 'Subject should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Subject)|(Message) is required)'
ok 92 - name should not show error message
ok 93 - Form with name and body unfilled sent 1 time(s)
ok 94 - email should not show error message
ok 95 - Body should show error message
ok 96 - subject should not show error message
ok 97 - Name should show error message
ok 98 - Form with email filled in sent 0 time(s)
ok 99 - email should not show error message
ok 100 - Body should show error message
ok 101 - Subject should show error message
ok 102 - Name should show error message
ok 103 - Form with email unfilled sent 0 time(s)
ok 104 - Email should show error message
ok 105 - Message should not show error message
ok 106 - subject should not show error message
ok 107 - name should not show error message
ok 108 - Form with email filled in sent 1 time(s)
ok 109 - email should not show error message
not ok 110 - Body should show error message
# Failed test 'Body should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Body)|(Message) is required)'
not ok 111 - Subject should show error message
# Failed test 'Subject should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Subject)|(Message) is required)'
not ok 112 - Name should show error message
# Failed test 'Name should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Name)|(Message) is required)'
ok 113 - Form with email unfilled sent 1 time(s)
ok 114 - Email should show error message
ok 115 - Message should not show error message
ok 116 - subject should not show error message
ok 117 - name should not show error message
ok 118 - Form with name and email filled in sent 0 time(s)
ok 119 - email should not show error message
ok 120 - Body should show error message
ok 121 - Subject should show error message
ok 122 - name should not show error message
ok 123 - Form with name and email unfilled sent 0 time(s)
ok 124 - Email should show error message
ok 125 - Message should not show error message
ok 126 - subject should not show error message
ok 127 - Name should show error message
ok 128 - Form with name and email filled in sent 1 time(s)
ok 129 - email should not show error message
not ok 130 - Body should show error message
# Failed test 'Body should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Body)|(Message) is required)'
not ok 131 - Subject should show error message
# Failed test 'Subject should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Subject)|(Message) is required)'
ok 132 - name should not show error message
ok 133 - Form with name and email unfilled sent 1 time(s)
ok 134 - Email should show error message
ok 135 - Message should not show error message
ok 136 - subject should not show error message
ok 137 - Name should show error message
ok 138 - Form with subject filled in sent 0 time(s)
ok 139 - Email should show error message
ok 140 - Body should show error message
ok 141 - subject should not show error message
ok 142 - Name should show error message
ok 143 - Form with subject unfilled sent 0 time(s)
ok 144 - email should not show error message
ok 145 - Message should not show error message
ok 146 - Subject should show error message
ok 147 - name should not show error message
ok 148 - Form with subject filled in sent 1 time(s)
not ok 149 - Email should show error message
# Failed test 'Email should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Email)|(Message) is required)'
not ok 150 - Body should show error message
# Failed test 'Body should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Body)|(Message) is required)'
ok 151 - subject should not show error message
not ok 152 - Name should show error message
# Failed test 'Name should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Name)|(Message) is required)'
ok 153 - Form with subject unfilled sent 1 time(s)
ok 154 - email should not show error message
ok 155 - Message should not show error message
ok 156 - Subject should show error message
ok 157 - name should not show error message
ok 158 - Form with name and subject filled in sent 0 time(s)
ok 159 - Email should show error message
ok 160 - Body should show error message
ok 161 - subject should not show error message
ok 162 - name should not show error message
ok 163 - Form with name and subject unfilled sent 0 time(s)
ok 164 - email should not show error message
ok 165 - Message should not show error message
ok 166 - Subject should show error message
ok 167 - Name should show error message
ok 168 - Form with name and subject filled in sent 1 time(s)
not ok 169 - Email should show error message
# Failed test 'Email should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Email)|(Message) is required)'
not ok 170 - Body should show error message
# Failed test 'Body should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Body)|(Message) is required)'
ok 171 - subject should not show error message
ok 172 - name should not show error message
ok 173 - Form with name and subject unfilled sent 1 time(s)
ok 174 - email should not show error message
ok 175 - Message should not show error message
ok 176 - Subject should show error message
ok 177 - Name should show error message
ok 178 - Form with name filled in sent 0 time(s)
ok 179 - Email should show error message
ok 180 - Body should show error message
ok 181 - Subject should show error message
ok 182 - name should not show error message
ok 183 - Form with name unfilled sent 0 time(s)
ok 184 - email should not show error message
ok 185 - Message should not show error message
ok 186 - subject should not show error message
ok 187 - Name should show error message
ok 188 - Form with name filled in sent 1 time(s)
not ok 189 - Email should show error message
# Failed test 'Email should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Email)|(Message) is required)'
not ok 190 - Body should show error message
# Failed test 'Body should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Body)|(Message) is required)'
not ok 191 - Subject should show error message
# Failed test 'Subject should show error message'
# at t/integration/contact.t line 154.
# got: "Sol Genomics Network clone(s) in cart (order) home"...
# length: 1336
# doesn't match '(?i-xsm:(Subject)|(Message) is required)'
ok 192 - name should not show error message
ok 193 - Form with name unfilled sent 1 time(s)
ok 194 - email should not show error message
ok 195 - Message should not show error message
ok 196 - subject should not show error message
ok 197 - Name should show error message
1..197
1..197
The plan was already output at /home/ray/cxgn/local-lib/lib/perl5/Test/Builder.pm line 2409.
# Looks like you failed 25 tests of 197.
Dubious, test returned 25 (wstat 6400, 0x1900)
Failed 25/197 subtests
Test Summary Report
-------------------
t/integration/contact.t (Wstat: 6400 Tests: 197 Failed: 25)
Failed tests: 5, 7, 9-10, 19, 29, 39, 69, 71-72, 89, 91
110-112, 130-131, 149-150, 152, 169-170
189-191
Non-zero exit status: 25
Parse errors: More than one plan found in TAP output
Files=1, Tests=197, 19 wallclock secs ( 0.09 usr 0.01 sys + 8.86 cusr 0.16 csys = 9.12 CPU)
Result: FAIL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment