Produced by Araxis Merge on 10/12/2018 4:04:44 PM Eastern Daylight Time. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a modern standards-compliant browser. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
| # | Location | File | Last Modified |
|---|---|---|---|
| 1 | Vetlink 2.0.zip\Vetlink 2.0\vetlink-web.zip\vetlink-web\acceptance_test\selenium-ruby\tests\VetLink_Main | VetLinkMain_spec.rb | Thu Nov 2 15:14:16 2017 UTC |
| 2 | Vetlink 2.0.zip\Vetlink 2.0\vetlink-web.zip\vetlink-web\acceptance_test\selenium-ruby\tests\VetLink_Main | VetLinkMain_spec.rb | Thu Oct 11 20:27:50 2018 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 1090 |
| Changed | 1 | 2 |
| Inserted | 0 | 0 |
| Removed | 0 | 0 |
| Whitespace | |
|---|---|
| Character case | Differences in character case are significant |
| Line endings | Differences in line endings (CR and LF characters) are ignored |
| CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
| 1 | require_re lative(".. /rspec_hel per") | |
| 2 | require_re lative(".. /../module /Constants ") | |
| 3 | require_re lative(".. /../pages/ vetlink_ma in") | |
| 4 | require_re lative(".. /../pages/ login_scre en") | |
| 5 | require_re lative(".. /../pages/ vetlink_me nu") | |
| 6 | require_re lative(".. /../pages/ menu") | |
| 7 | require_re lative(".. /../pages/ vetlink_ho me") | |
| 8 | require_re lative(".. /../pages/ vetlink_ab out") | |
| 9 | require_re lative(".. /../pages/ help_scree n") | |
| 10 | require_re lative(".. /../pages/ eula") | |
| 11 | require_re lative(".. /../pages/ vetlink_we lcome") | |
| 12 | require_re lative(".. /../pages/ vetlink_my profile") | |
| 13 | require_re lative(".. /../module /Assert") | |
| 14 | require_re lative(".. /../module /DriverUti lity") | |
| 15 | require_re lative(".. /../module /DBUtility ") | |
| 16 | require_re lative(".. /../module /MongoData ") | |
| 17 | require_re lative(".. /../module /Site") | |
| 18 | require 'r ubygems' | |
| 19 | require 's elenium-we bdriver' | |
| 20 | gem "test- unit" | |
| 21 | require "t est/unit" | |
| 22 | ||
| 23 | ########## ########## ########## ########## ########## ########## ########## ######## | |
| 24 | # VetLinkM ain | |
| 25 | # | |
| 26 | # User Sto ries/Crite rias: | |
| 27 | # -------- ---------- ----- | |
| 28 | # | |
| 29 | # Story - DODVAL-247 Create th e Landing screen whe n veteran has logged in with n o profile | |
| 30 | # Acceptan ce Criteri a - DODVA L-513 Land ing page w hen user h as logged in but not created a profile | |
| 31 | # | |
| 32 | # Story - DODVAL-230 Add a pic ture to th e landing page | |
| 33 | # Acceptan ce Criteri a - DODVA L-388 When the user has not lo gged into the app, t hey will s ee a pictu re on the landing pa ge | |
| 34 | # | |
| 35 | # Story - DODVAL-338 Text and Pop up for Landing S creen - Us er Logged in with no Profile | |
| 36 | # Acceptan ce Criteri a - DODVA L-309 Prof ile Inform ation link to open " Profile In formation" modal dia log to lea rn more ab out the us e of profi le data. | |
| 37 | # | |
| 38 | # Story - DODVAL-268 Finalize About scre en text fo r Veteran Links | |
| 39 | # Story - DODVAL-236 As a Vete ran I want to be abl e to see i nformation about the Veteran L inks app | |
| 40 | # Story - DODVAL-225 About Scr een | |
| 41 | # Acceptan ce Criteri a - DODVA L-506 The text displ ayed will match what is provid ed in the story. | |
| 42 | # | |
| 43 | # Story - DODVAL-303 Modify th e Help tex t. | |
| 44 | # Acceptan ce Criteri a - DODVA L-472 Modi fy help te xt | |
| 45 | # | |
| 46 | # Story - DODVAL-287 Learn abo ut the app before Lo gging in ( About scre en) | |
| 47 | # Acceptan ce Criteri a - DODVA L-226 Abou t screen d isplay | |
| 48 | # | |
| 49 | # Story - `` Help Fu nction | |
| 50 | # Story - DODVAL-303 Modify th e Help tex t. | |
| 51 | # Acceptan ce Criteri a - DODVA L-258 Disp lay Help s creen | |
| 52 | # | |
| 53 | # Story - DODVAL-225 About Scr een | |
| 54 | # Acceptan ce Criteri a - DODVA L-228 Acce ssing Abou t screen t o see its content | |
| 55 | # | |
| 56 | # Story - DODVAL-284 Landing P age when u ser has lo gged in bu t not crea ted a prof ile | |
| 57 | # Acceptan ce Criteri a - DODVA L-220 AC o f Landing page of lo gged user who does n ot create profile ye t | |
| 58 | # | |
| 59 | # Story - DODVAL-285 Landing s creen when veteran h as not log ged in | |
| 60 | # Acceptan ce Criteri a - DODVA L-286 Land ing screen when vete ran has no t logged i n | |
| 61 | # | |
| 62 | ########## ########## ########## ########## ########## ########## ########## ######## | |
| 63 | ||
| 64 | ########## ########## ########## ########## ########## ########## ########## ########## ########## ######## | |
| 65 | # VetLinkM ain- | |
| 66 | # User Sto ries: Jira #: 1233, 1627, 1780 (Learn ab out the ap p before L ogging in (About scr een)) | |
| 67 | # Crite rias: Jira #: | |
| 68 | # User Sto ries: Jira #: 1519 ( Create Nav igation pa ge availab ility befo re logging in) | |
| 69 | # User Sto ries: Jira #: 1233, 1627, 1781 (Help but ton) | |
| 70 | # User Sto ries: Jira #: 1521 ( Landing sc reen after logged in with no p rofile) | |
| 71 | # User Sto ries: Jira #: 1298 ( Authentica te via DSL ogon) | |
| 72 | # Crite rias: Jira #: | |
| 73 | # | |
| 74 | # User Sto ries: Jira #: 1236, 1234(Creat e Profile Framework) | |
| 75 | # Crite rias: Jira #: 1737 C reate prof ile option from land ing page | |
| 76 | # 1738 T he Create Profile sc reen will be display ed | |
| 77 | # 1739 U ser can en ter data o n Create P rofile scr een. | |
| 78 | # 1740 U ser can sa ve | |
| 79 | # | |
| 80 | # User Sto ries: Jira #: 1523, 1643 Edit Profile Fr amework | |
| 81 | # Crite rias: Jira #: 1735 U ser can ac cess the M y profile section fr om the LEF T navigati on menu | |
| 82 | # 1736 U ser can ad d to or ed it their p rofile aft er opening My Profil e from the LEFT navi gation men u | |
| 83 | # 1741 U ser can sa ve | |
| 84 | # | |
| 85 | # User Sto ries: Jira #: 277 Ad d a Pictur e to the L anding Pag e | |
| 86 | # Crite rias: Jira #: 1157 W hen the us er has not logged in to the app , they wil l see a pi cture on t he landing page | |
| 87 | # | |
| 88 | ########## ########## ########## ########## ########## ########## ########## ########## ########## ######## | |
| 89 | describe " [VetLinkMa in-Jira# 1 233/1627/1 780(About) , 1234/152 3(Create?e dit Profil e Framewor k, 1781(He lp)]" do | |
| 90 | ||
| 91 | include Site | |
| 92 | include Assert | |
| 93 | include DriverUtil ity | |
| 94 | include DBUtility | |
| 95 | ||
| 96 | ||
| 97 | ||
| 98 | before(: all) do | |
| 99 | puts(" ++++++++++ ++++++++++ ++ Start V etlinkMain .rb ++++++ ++++++++++ ++++++++++ ++++++") | |
| 100 | initia lizeConfig urations() | |
| 101 | $PRINT _DEBUG_MSG S = false | |
| 102 | saveOr ginalColle ctions() #Must run after init ializeConf igurations () | |
| 103 | remove ProfileCol lection() #Must run after save OrginalCol lections() | |
| 104 | @mainP age = site GetMainPag e | |
| 105 | @dsLog onPage = s iteGetLogi nScreenPag e | |
| 106 | @welco mePage = s iteGetWelc omePage | |
| 107 | #@navM enu = site GetMenu | |
| 108 | @navMe nuCommon = siteGetMe nuCommon | |
| 109 | @profi lePage = s iteGetProf ilePage | |
| 110 | @eulaP age = site GetEulaPag e | |
| 111 | @launc hPadPage = siteGetLa unchpadPag e | |
| 112 | @about Page = sit eGetAboutS creen | |
| 113 | @helpS creen = si teGetHelpS creen | |
| 114 | setup_ 0000_main_ page | |
| 115 | end | |
| 116 | ||
| 117 | ||
| 118 | ||
| 119 | after(:a ll) do | |
| 120 | restor eOrginalCo llections( ) | |
| 121 | quitDr iver() | |
| 122 | puts(" ++++++++++ ++++++++++ ++ End Vet linkMain.r b ++++++++ ++++++++++ ++++++++++ ++++") | |
| 123 | end | |
| 124 | ||
| 125 | ||
| 126 | ||
| 127 | def rspe cAssertEqu al(expecte dValue, va lue) | |
| 128 | value. should == expectedVa lue | |
| 129 | end | |
| 130 | ||
| 131 | ||
| 132 | ||
| 133 | def setu p_0000_mai n_page | |
| 134 | ||
| 135 | puts " *#{__metho d__}" | |
| 136 | puts(" EULA Page displayed, click on Accept but ton then g oto DSLogo n page") | |
| 137 | @mainP age = acce ptEulaGo2_ DSLogonPag e | |
| 138 | puts(" waitForPag eToLoad('V eteran Lin k')-Before Login") | |
| 139 | waitFo rPageToLoa d('Veteran Link') | |
| 140 | puts(" Page('Vete ran Link') Loaded") | |
| 141 | ||
| 142 | end | |
| 143 | ||
| 144 | ||
| 145 | ||
| 146 | it 'DODV AL-518: Us er can see and use L ogin butto n from app ' do | |
| 147 | ||
| 148 | puts " DODVAL-518 : User can see and u se Login b utton from app" | |
| 149 | puts " *#{__metho d__}" | |
| 150 | @mainP age = site GetMainPag e() | |
| 151 | rspecA ssertEqual (true, use rNameOnFoo ter?("Not logged in" )) | |
| 152 | puts(" DODVAL-518 : should d isplay \"N ot logged in\" on DS Logon page footer") | |
| 153 | ||
| 154 | actual Content = @mainPage. getScreenC ontent | |
| 155 | puts " ---actualC ontent=[#{ actualCont ent}]\n" | |
| 156 | actual Content.in clude?("We lcome to V eteran Lin k!!").shou ld == true | |
| 157 | actual Content.in clude?("Pl ease log i n below to join the conversati on now! Or click on the About option in the menu i n the uppe r right to learn mor e about th e applicat ion.").sho uld == tru e | |
| 158 | puts " DODVAL-518 : Vetlink DSLogon Pa ge Content -ASSERTED" | |
| 159 | rspecA ssertEqual (true, @ma inPage.isD SLogonButt onDisplaye d) | |
| 160 | puts " DODVAL-518 : DSLogon Button-FOU ND" | |
| 161 | ||
| 162 | puts(" ***DODVAL- 230/AC:DOD VAL-388 Ad d a Pictur e to the L anding Pag e") | |
| 163 | rspecA ssertEqual (true, @ma inPage.isL andingPage ImageDispl ayed) #Ens ure image is present | |
| 164 | rspecA ssertEqual (LANDING_I MAGE_ALT_T AG, @mainP age.getAlt LandingPag eImage) #S econd asse rtion, get 'alt' tag | |
| 165 | rspecA ssertEqual (LANDING_I MAGE_SRC_N AME, @main Page.getLa ndingPageI mage) #Thi rd asserti on, get la nding page image nam e | |
| 166 | puts(" Landing Pa ge Image V erified") | |
| 167 | end | |
| 168 | ||
| 169 | ||
| 170 | #At 'Vet eran Link' page | |
| 171 | it 'Ensu re that "V eteran Lin k" DSLogon page impl icit headi ngs are st ructured w ith H1 tag s.' do | |
| 172 | ||
| 173 | expect edTitle = 'Veteran L ink' | |
| 174 | rspecA ssertEqual (true, is5 08PageTitl eH1Tag(exp ectedTitle )) | |
| 175 | puts(" #{expected Title} DSL ogon page title head ing is str uctured wi th H1 tags for 508 C ompliance ") | |
| 176 | ||
| 177 | end | |
| 178 | ||
| 179 | ||
| 180 | it 'Veri fy_About_P age_Before _User_Logi ns' do | |
| 181 | ||
| 182 | puts " Verify_Abo ut_Page_Be fore_User_ Logins" | |
| 183 | verify About | |
| 184 | puts " Verify_Abo ut_Page_Be fore_User_ Logins" | |
| 185 | ||
| 186 | end | |
| 187 | ||
| 188 | ||
| 189 | it 'DODV AL-517, DO DVAL-516: Clicking L ogin butto n directed to extern al login p age and af ter authen tication U ser return s to app' do | |
| 190 | ||
| 191 | puts " DODVAL-517 , DODVAL-5 16: Clicki ng Login b utton dire cted to ex ternal log in page an d after au thenticati on User re turns to a pp" | |
| 192 | @mainP age = site GetMainPag e | |
| 193 | @welco mePage = @ mainPage.u serLogins | |
| 194 | ||
| 195 | puts(" waitForPag eToLoad('V eteran Lin k')-After Login") | |
| 196 | waitFo rPageToLoa d('Veteran Link') | |
| 197 | puts(" Page('Vete ran Link') Loaded") | |
| 198 | ||
| 199 | puts(" \nFooter i s #{getFoo ter()}") | |
| 200 | rspecA ssertEqual (true, use rNameOnFoo ter?()) | |
| 201 | puts(" should dis play usern ame on lan ding page footer") | |
| 202 | putd(" User logge d in-At We lcome Page -verifyAbo ut next") | |
| 203 | ||
| 204 | end | |
| 205 | ||
| 206 | ||
| 207 | #At 'Vet eran Link' page | |
| 208 | it 'Ensu re that "V eteran Lin k" Welcome page impl icit headi ngs are st ructured w ith H1 tag s.' do | |
| 209 | ||
| 210 | expect edTitle = 'Veteran L ink' | |
| 211 | rspecA ssertEqual (true, is5 08PageTitl eH1Tag(exp ectedTitle )) | |
| 212 | puts(" #{expected Title} Wel come page title head ing is str uctured wi th H1 tags for 508 C ompliance ") | |
| 213 | ||
| 214 | end | |
| 215 | ||
| 216 | ||
| 217 | it 'Abou t Screen D isplays' d o | |
| 218 | puts(" About Scre en Display s") | |
| 219 | verify About | |
| 220 | @welco mePage.cre ateProfile ButtonOnWe lcomePage? .should == true | |
| 221 | puts(" About Scre en Display s") | |
| 222 | puts(" Back at Ve teran Link Welcome p age - No P rofile cre ated yet - About to verify EUL A link on About page ") | |
| 223 | ||
| 224 | end | |
| 225 | ||
| 226 | ||
| 227 | it 'Abou t Screen D isplays Li nk to EULA page' do | |
| 228 | ||
| 229 | puts " About Scre en Display s Link to EULA page" | |
| 230 | verify AboutEULA | |
| 231 | @welco mePage = s iteGetWelc omePage | |
| 232 | ||
| 233 | puts(" waitForPag eToLoad('V eteran Lin k')") | |
| 234 | waitFo rPageToLoa d('Veteran Link') | |
| 235 | puts(" Page('Vete ran Link') Loaded") | |
| 236 | ||
| 237 | @welco mePage.cre ateProfile ButtonOnWe lcomePage? .should == true | |
| 238 | puts(" should be at Welcome page - No Profile c reated yet after cli cking EULA link on A bout page" ) | |
| 239 | ||
| 240 | end | |
| 241 | ||
| 242 | #1868 | |
| 243 | it 'Text and Pop u p for Land ing Screen - User Lo gged in wi th no Prof ile will s ee Profile Informati on link' d o | |
| 244 | puts(' Text and P op up for Landing Sc reen - Use r Logged i n with no Profile wi ll see Pro file Infor mation lin k') | |
| 245 | verify ProfileInf ormation | |
| 246 | puts(' Text and P op up for Landing Sc reen - Use r Logged i n with no Profile wi ll see Pro file Infor mation lin k') | |
| 247 | end | |
| 248 | ||
| 249 | ||
| 250 | it '*123 6_Scenario _0400_veri fy_Creates _Profile_F ramework_A fter_User_ Logins' do | |
| 251 | ||
| 252 | puts(" VetLinkMai n_Help per forms this test") | |
| 253 | ||
| 254 | end | |
| 255 | ||
| 256 | ||
| 257 | it '*Sce nario_0400 _verify_He lp_Screen_ After_User _Logins_An d_Creates_ Profile' d o | |
| 258 | #verif yHelp | |
| 259 | puts(" VetLinkMai n_Help per forms this test") | |
| 260 | end | |
| 261 | ||
| 262 | ||
| 263 | it '*Sce nario_0300 _verify_Re sources_Sc reen_After _User_Logi ns_And_Cre ates_Profi le' do | |
| 264 | #verif yResources | |
| 265 | #putd( "VetLinkMa in_Help pe rforms thi s test") | |
| 266 | puts(" User story # 2246 sta tes that n o Resource s needed." ) | |
| 267 | end | |
| 268 | ||
| 269 | ||
| 270 | ||
| 271 | def veri fyResource s | |
| 272 | ||
| 273 | @navMe nuCommon = siteGetMe nuCommon() | |
| 274 | puts " *1781_#{__ method__}" | |
| 275 | @navMe nuCommon.c lickRightN avMenu | |
| 276 | puts(" should dis play Resou rce on Use r menu" ) | |
| 277 | putd(" Tab on Res ource to v erify its content") | |
| 278 | findEl ementById( RESOURCES_ BUTTON_ON_ NAV_ID).cl ick | |
| 279 | findEl ementById( "title").t ext.should == RESOUR CES_MODAL_ TITLE | |
| 280 | puts(" +++UST-178 1-should d isplay Res ources on User menu" ) | |
| 281 | ||
| 282 | end | |
| 283 | ||
| 284 | ||
| 285 | ||
| 286 | def veri fyAbout | |
| 287 | ||
| 288 | puts " #{__method __}" | |
| 289 | @navMe nuCommon = siteGetMe nuCommon() | |
| 290 | @about Page = sit eGetAboutS creen | |
| 291 | ||
| 292 | puts " #{__method __}" | |
| 293 | refres hPage | |
| 294 | @navMe nuCommon.c lickRightN avMenu | |
| 295 | ||
| 296 | puts(" should dis play User menu" ) | |
| 297 | putd(" Tab on Abo ut to veri fy its co ntent") | |
| 298 | ||
| 299 | @navMe nuCommon.c lickAboutB tn | |
| 300 | ||
| 301 | versio nText = @a boutPage.g etAppVersi on() | |
| 302 | puts " versionTex t=[#{versi onText}]\n " | |
| 303 | puts " expectTex t=[[[#{EXP ECTED_VERS ION_NUMBER }]]]\n" | |
| 304 | ||
| 305 | rspecA ssertEqual (EXPECTED_ VERSION_NU MBER, vers ionText) | |
| 306 | ||
| 307 | puts(" should dis play Versi on Info [# {EXPECTED_ VERSION_NU MBER}]") | |
| 308 | ||
| 309 | ||
| 310 | ||
| 311 | puts " expectedTe xt=\n[#{EX PECTED_ABO UT_SCREEN_ CONTENT}]" | |
| 312 | mainCo ntent = @a boutPage.g etScreenCo ntent | |
| 313 | puts " mainConte nt=\n[[#{m ainContent }]]" | |
| 314 | ||
| 315 | rspecA ssertEqual (EXPECTED_ ABOUT_SCRE EN_CONTENT , mainCont ent) | |
| 316 | ||
| 317 | puts(" should dis play About content") | |
| 318 | ||
| 319 | # elem ent = find ElementByX Path("h1", "id", ABO UT_MODAL_T ITLE_ID) | |
| 320 | # elem ent = find ElementsBy CustomXPat h("/html/b ody/div[1] /div/div/d iv[1]/h1") .text | |
| 321 | elemen t = @drive r.find_ele ment(:xpat h,"/html/b ody/div[1] /div/div/d iv[1]/h1") .text | |
| 322 | rspecA ssertEqual (ABOUT_MOD AL_TITLE, element) | |
| 323 | puts(" should dis play About title [#{ ABOUT_MODA L_TITLE}]" ) | |
| 324 | ||
| 325 | text = @aboutPag e.buttonOK _text | |
| 326 | putd(" o k button t ext=[#{tex t}]") | |
| 327 | putd(" Expected o k button t ext=[#{ABO UT_OK_BUTT ON_TEXT}]" ) | |
| 328 | rspecA ssertEqual (ABOUT_OK_ BUTTON_TEX T, text) | |
| 329 | puts(" should dis play About [#{ABOUT_ OK_BUTTON_ TEXT}] but ton ") | |
| 330 | ||
| 331 | ||
| 332 | rspecA ssertEqual (true, @ab outPage.li nkAboutEUL AExists?) | |
| 333 | puts(" should dis play #{ABO UT_EULA_LI NK_TEXT} l ink") | |
| 334 | ||
| 335 | @about Page.click OnOK | |
| 336 | puts(" should cli ck on OK b utton to c lose About screen") | |
| 337 | ||
| 338 | ||
| 339 | @navMe nuCommon.c lickRightN avMenu() | |
| 340 | puts(" should cli ck on User Menu to c lose it") | |
| 341 | ||
| 342 | ||
| 343 | end | |
| 344 | ||
| 345 | ||
| 346 | def veri fyAboutEUL A | |
| 347 | @navMe nuCommon = siteGetMe nuCommon() | |
| 348 | @about Page = sit eGetAboutS creen | |
| 349 | # @dri ver.find_e lement(:id , OK_DISMI SS_BUTTON_ ID).cick | |
| 350 | # @abo utPage = c lickModalO kDismiss | |
| 351 | ||
| 352 | puts " #{__method __}" | |
| 353 | @navMe nuCommon.c lickRightN avMenu | |
| 354 | @navMe nuCommon.c lickAboutB tn | |
| 355 | ||
| 356 | rspecA ssertEqual (true, @ab outPage.li nkAboutEUL AExists?) | |
| 357 | puts(" should ope n About pa ge and dis play #{ABO UT_EULA_LI NK_TEXT} l ink") | |
| 358 | ||
| 359 | @eulaP age = @abo utPage.cli ckOnAboutE ULA | |
| 360 | ||
| 361 | text = getEulaHe ading(); | |
| 362 | !45.ti mes{ brea k if (text == EULA_H EADER); pa use 1; tex t = getEul aHeading() ; } | |
| 363 | text.s hould == E ULA_HEADER | |
| 364 | puts(" should dis play on EU LA page he ader '#{EU LA_HEADER} ' ") | |
| 365 | ||
| 366 | @mainP age = @eul aPage.clic kDone | |
| 367 | puts(" should cli ck on Done button on EULA page ") | |
| 368 | @welco mePage = s iteGetWelc omePage | |
| 369 | #pageE xpectedTex t = @welco mePage.wai tForPageLo aded | |
| 370 | #puts( "welcomePa ge: come u p with thi s text #{p ageExpecte dText}") | |
| 371 | #pageE xpectedTex t.should_n ot == "" | |
| 372 | waitFo rPageToLoa d('Veteran Link') | |
| 373 | puts(" should go back to wh ere you we re which i s the Welc ome screen ") | |
| 374 | ||
| 375 | end | |
| 376 | ||
| 377 | ||
| 378 | ||
| 379 | ||
| 380 | def veri fyHelp | |
| 381 | ||
| 382 | @navMe nuCommon = siteGetMe nuCommon() | |
| 383 | @helpS creen = si teGetHelpS creen | |
| 384 | ||
| 385 | puts " #{__method __}" | |
| 386 | @navMe nuCommon.c lickRightN avMenu | |
| 387 | ||
| 388 | puts(" should dis play Help on User me nu" ) | |
| 389 | putd(" Tab on Hel p to verif y its con tent") | |
| 390 | ||
| 391 | @navMe nuCommon.c lickHelpBt n | |
| 392 | ||
| 393 | # elem ent = find ElementByI d(HELP_MOD AL_TITLE_I D)modal-ti tle text-c enter ng-b inding | |
| 394 | elemen t = elemen t = find_e lement(:xp ath, "//di v[@class=' modal-titl e text-cen ter ng-bin ding']").t ext | |
| 395 | rspecA ssertEqual (HELP_MODA L_TITLE, e lement.tex t) | |
| 396 | puts(" should dis play title [#{HELP_M ODAL_TITLE }] on Help modal") | |
| 397 | ||
| 398 | okDism issButton = getModal OkDismiss( ) | |
| 399 | text = okDismiss Button.tex t | |
| 400 | putd(" o k button t ext=[#{tex t}]") | |
| 401 | putd(" Expected o k button t ext=[#{OK_ DISMISS_BU TTON_TEXT} ]") | |
| 402 | rspecA ssertEqual (OK_DISMIS S_BUTTON_T EXT, text) | |
| 403 | puts(" should dis play [#{OK _DISMISS_B UTTON_TEXT }] button on Help mo dal") | |
| 404 | ||
| 405 | mainCo ntent = @h elpScreen. getScreenC ontent | |
| 406 | puts " mainConte nt=\n[#{ma inContent} ]" | |
| 407 | mainCo ntent.incl ude?("Help Desk (tol l free): ( 877) 470 5 947 Weekda ys 7 a.m.- 7 p.m. (CT )").should == true | |
| 408 | mainConten t.include? ("General Feedback t o VA: Emai l: PII ").should == true | |
| 409 | ||
| 410 | userGu ideLink = @helpScree n.getUserG uideLink | |
| 411 | rspecA ssertEqual (true, use rGuideLink .displayed ?) | |
| 412 | puts(" +++UST-178 1-should d isplay #{U SER_GUIDE_ LINK_TEXT} link") | |
| 413 | ||
| 414 | curren tWindowHan dle = getC urrentWind owHandle() | |
| 415 | userGu ideLink.cl ick | |
| 416 | puts " current ur l=[#{getCu rrentURL() }] after c licking #{ USER_GUIDE _LINK_TEXT } link the n switch t o that win dow" | |
| 417 | pause 0.5 | |
| 418 | switch ToNextWind ow() | |
| 419 | puts " Final url= [#{getCurr entURL()}] " | |
| 420 | getCur rentURL(). include?(U SER_GUIDE_ LINK).shou ld == true | |
| 421 | ||
| 422 | puts " should dis play #{USE R_GUIDE_LI NK_TEXT} i n new wind ow" | |
| 423 | pause 0.5 | |
| 424 | puts " should clo se #{USER_ GUIDE_LINK _TEXT} wi ndow and s witch back to vetlin k window- pause 0.5" | |
| 425 | ||
| 426 | closeC urrentWind ow | |
| 427 | switch Window(cur rentWindow Handle) | |
| 428 | pause 0.5 | |
| 429 | ||
| 430 | ||
| 431 | okDism issButton. click | |
| 432 | puts(" should cli ck on OK b utton to c lose Help screen") | |
| 433 | userGu ideLink = @helpScree n.getUserG uideLink | |
| 434 | rspecA ssertEqual (false, us erGuideLin k.displaye d?) | |
| 435 | ||
| 436 | puts(" should not display H elp Screen ") | |
| 437 | ||
| 438 | @navMe nuCommon.c lickRightN avMenu() | |
| 439 | puts(" should cli ck on User Menu to c lose it") | |
| 440 | ||
| 441 | puts(" should ver ify accept ance crite ria on Hel p screen s uccessfull y") | |
| 442 | ||
| 443 | ||
| 444 | end | |
| 445 | ||
| 446 | ||
| 447 | ||
| 448 | def veri fyProfileI nformation | |
| 449 | putd " *#{__metho d__}" | |
| 450 | @welco mePage = s iteGetWelc omePage | |
| 451 | puts " got site" | |
| 452 | actual Content = @welcomePa ge.getScre enContent | |
| 453 | puts " got conten t" | |
| 454 | puts " ========== =========" | |
| 455 | puts a ctualConte nt | |
| 456 | origin alContent = actualCo ntent | |
| 457 | actual Content = actualCont ent.gsub(" \n"," ") | |
| 458 | puts " - - - - - - - - - -" | |
| 459 | puts " #{actualCo ntent}" | |
| 460 | puts " ---------- ---------" | |
| 461 | putd " -->verifyP rofileInfo rmation-DS Logon actu alContent= [#{actualC ontent}]\n " | |
| 462 | ||
| 463 | expt = "Welcome to Veteran Link!!\n" + | |
| 464 | "To get s tarted, cl ick on the Create Pr ofile opti on below. You'll be able to en ter inform ation abou t yourself and then choose wha t you wish to share with other s. For mor e informat ion about the use of your data from this applicati on, select the Profi le Informa tion link: Profile I nformation \nCreate P rofile" | |
| 465 | puts " - - - - - - - - - -" | |
| 466 | ||
| 467 | actual Content.in clude?("We lcome to V eteran Lin k!!").shou ld == true | |
| 468 | actual Content.in clude?("Fo r more inf ormation a bout the u se of your data from this appl ication, s elect the Profile In formation link: ").s hould == t rue | |
| 469 | actual Content.in clude?("Pr ofile Info rmation"). should == true | |
| 470 | # @wel comePage.g etProfileI nfoLink("a bout-page" , "'profil e/profilei nfo'").tex t.should = = "Profile Informati on" | |
| 471 | ||
| 472 | rspecA ssertEqual (expt,orig inalConten t) | |
| 473 | ||
| 474 | ||
| 475 | @navMe nuCommon = siteGetMe nuCommon() | |
| 476 | #jnaka ma elem = getModalLi nk("about- page", "pr ofileinfo" ) | |
| 477 | elem = @welcomeP age.getPro fileInfoLi nk() | |
| 478 | elem.c lick | |
| 479 | @helpS creen = si teGetHelpS creen | |
| 480 | ||
| 481 | puts(" should dis play Profi le Informa tion" ) | |
| 482 | sleep 2 | |
| 483 | elemen tText = @d river.find _element(: xpath, "./ /*[@class[ contains(. ,'modal-op en')]]//di v[@class=' modal-head er ng-scop e']//h1"). text | |
| 484 | puts " My Informa tion text is: ", ele mentText | |
| 485 | rspecA ssertEqual (PROFILE_I NFO_MODAL_ TITLE, ele mentText) | |
| 486 | puts(" should dis play Profi le Informa tion title [#{PROFIL E_INFO_MOD AL_TITLE}] ") | |
| 487 | ||
| 488 | mainCo ntent = @h elpScreen. getScreenC ontent | |
| 489 | puts " mainConte nt=\n[#{ma inContent} ]" | |
| 490 | mainCo ntent.incl ude?("No d ata will b e used out side of th is applica tion and o nly what y ou select to share w ill be ava ilable to other memb ers to sea rch for or see. To r emain anon ymous, you can choos e to only enter a Sc reen Name and not sh are any in formation. This mean s that oth er members will not be able to search fo r you by a ny other i tems. By c reating a profile yo u are agre eing to us e the Vete ran Link a pplication and allow other mem bers to se e your sha red inform ation.").s hould == t rue | |
| 491 | puts(" should dis play Profi le Informa tion on di alog box") | |
| 492 | okDism issButton = getModal OkDismiss( ) | |
| 493 | text = okDismiss Button.tex t | |
| 494 | rspecA ssertEqual ("Close", text) | |
| 495 | ||
| 496 | ||
| 497 | okDism issButton. click | |
| 498 | puts(" should cli ck on OK b utton to c lose Profi le Informa tion scree n") | |
| 499 | ||
| 500 | puts(" Successful ly verify acceptance criteria on Profile Informati on Screen ") | |
| 501 | ||
| 502 | end | |
| 503 | ||
| 504 | ||
| 505 | def dump PageSource AsNeeded(s tring) | |
| 506 | putd(s tring) | |
| 507 | dumpPa geSource | |
| 508 | end | |
| 509 | ||
| 510 | ||
| 511 | def tapY esToSavePr ofileData | |
| 512 | text = @modalCon firm.waitF orPageLoad ed | |
| 513 | puts(" +++UST-152 3-@modalCo nfirm.wait ForPageLoa ded retur ns #{text} ") | |
| 514 | i=1 | |
| 515 | !2.tim es{ | |
| 516 | be gin | |
| 517 | break if t ext == $MO DAL_SAVE_C ONFIRM_TIT LE | |
| 518 | i=i+1 | |
| 519 | puts("slee ping becau se title [ #{text}] n ot availab le in moda l box [#{M ODAL_GO_PR IVATE_TITL E}] yet") | |
| 520 | text = fin dElementBy Id($MODAL_ TITLE_ID). text | |
| 521 | re scue | |
| 522 | putd(" SYS TEM ERROR while find ing modal title [#{$ MODAL_SAVE _CONFIRM_T ITLE}]") | |
| 523 | en d | |
| 524 | paus e $BUILD_P AUSE | |
| 525 | } | |
| 526 | puts(" After #{i} tries, mo dal title is [#{text }]") | |
| 527 | text.s hould == $ MODAL_SAVE _CONFIRM_T ITLE | |
| 528 | puts(" +++UST-152 3-should d isplay mod al confirm ation box after tapp ing Save b utton") | |
| 529 | rspecA ssertEqual ($MODAL_SA VE_CONFIRM _MSG, @mod alConfirm. getModalCo nfirmMsg) | |
| 530 | rspecA ssertEqual ($MODAL_NO _BUTTON_TE XT, @modal Confirm.ge tNoButton. text) | |
| 531 | rspecA ssertEqual ($MODAL_YE S_BUTTON_T EXT, @moda lConfirm.g etYesButto n.text) | |
| 532 | puts(" +++UST-123 7-should d isplay: \n [#{$MODAL_ SAVE_CONFI RM_TITLE}] as title\ n[#{$MODAL _SAVE_CONF IRM_MSG}] as modal m essage\n[# {$MODAL_NO _BUTTON_TE XT}], [#{$ MODAL_YES_ BUTTON_TEX T}]") | |
| 533 | puts(" +++UST-123 7-should b e ready to tap [#{$M ODAL_NO_BU TTON_TEXT} ] button n ext") | |
| 534 | @modal Confirm.ge tYesButton .click | |
| 535 | ### t apOnSave t hen No but ton in Sav e Confirm Modal | |
| 536 | puts(" +++UST-123 7-should t ap [#{$MOD AL_YES_BUT TON_TEXT}] button to go back t o Group pa ge") | |
| 537 | ||
| 538 | end | |
| 539 | ||
| 540 | ||
| 541 | ||
| 542 | it 'LAST STEP' do | |
| 543 | siteLo gMeOut_Bac kToLaunchP ad(USER_NA ME) | |
| 544 | puts " ****DONE T ESTING Vet linkMain.r b. User [ #{USER_NAM E}] logged out." | |
| 545 | end | |
| 546 | end |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.