Produced by Araxis Merge on 9/27/2017 9:44:48 AM Central 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 | adk\adk\product\production\documentation\adk | internal-developer-specific.md | Tue Dec 15 14:06:56 2015 UTC |
| 2 | adk\adk\product\production\documentation\adk | internal-developer-specific.md | Tue Sep 26 13:01:57 2017 UTC |
| Description | Between Files 1 and 2 |
|
|---|---|---|
| Text Blocks | Lines | |
| Unchanged | 2 | 226 |
| 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 | ::: page-d escription | |
| 2 | # Internal Developer Specific Instructio ns # | |
| 3 | Outlines T asks and C onventions Specific to develop ers on the VistaCore /Tangent P roject. | |
| 4 | ::: | |
| 5 | ||
| 6 | ## Applet Level Inst ructions # # | |
| 7 | ### Buildi ng Applets ### | |
| 8 | ||
| 9 | Applets _m ust_ be cr eated usin g the "**c reateApple t**" task. Applet d irectories should no t be manua lly create d or delet ed in the root apple ts directo ry. The "createApp let" task will promp t for an a pplet name and creat e the appl et directo ry for you along wit h addition al tasks f or deployi ng your ap plet (e.g. **deploy[ applet nam e]**). - Make sure to issue a commit fo r this ini tial apple t creation before co ntinuing. | |
| 10 | ||
| 11 | ### Deploy ing an App let ### | |
| 12 | To deploy your apple t locally run the :` deploy[app let name]` task | |
| 13 | ||
| 14 | The applet will be d eployed to http:// IP . The "test nav" with links for showing yo ur applet in differe nt layouts including "full" vi ew will be displayed . | |
| 15 | ||
| 16 | You can se e how your applet re sponds to changes in size when you cycle through _ "Full"_, _ "Half"_, a nd _"Quart er"_. Keep in mind t hat your a pplet may be used in different frame siz es when sc reen layou ts are cre ated and d evelop you r applet a ccordingly . | |
| 17 | ||
| 18 | ### Applet Testing # ## | |
| 19 | Make sure that you r un all tes ts (accept ance / uni t) _locall y_ before you commit /push any code chang es to the repository . | |
| 20 | (aka. Keep the build **_Green_ **) | |
| 21 | ||
| 22 | #### Apple t Unit Tes ting #### | |
| 23 | For Applet Unit Test ing, each applet sho uld have i t's own te st/unit di rectory. The tests can be run with the `test[appl et name]` task. | |
| 24 | ||
| 25 | Here is lo ok at an e xample **. js** unit test file: | |
| 26 | ||
| 27 | ```JavaScr ipt | |
| 28 | /*jslint n ode: true, nomen: tr ue, unpara m: true */ | |
| 29 | /*global j query, $, _, define, Marionett e, jqm, de scribe, it , expect, beforeEach , spyOn */ | |
| 30 | 'use stric t'; | |
| 31 | // Jasmine Unit Test ing Suite | |
| 32 | define(["j query", "b ackbone", "marionett e", "jasmi nejquery"] , | |
| 33 | functi on ($, Bac kbone, Mar ionette) { | |
| 34 | ||
| 35 | // replace be low with y our own te sts | |
| 36 | de scribe("A suite", fu nction() { | |
| 37 | it("cont ains spec with an ex pectation" , function () { | |
| 38 | expe ct(true).t oBe(true); | |
| 39 | }); | |
| 40 | }) ; | |
| 41 | ||
| 42 | }); | |
| 43 | ``` | |
| 44 | ||
| 45 | #### Apple t Acceptan ce Testing #### | |
| 46 | For Applet Acceptanc e Testing, each appl et should have it's own test/a cceptance- tests dire ctory. Th is directo ry should have a **f eatures** folder tha t contains the **.fe ature** fi le as well as a fold er called **steps** that holds all suppo rting **.r b** step f iles. | |
| 47 | ||
| 48 | ``` | |
| 49 | - applets | |
| 50 | - aller gies | |
| 51 | - tes t | |
| 52 | - a cceptance- tests | |
| 53 | - features | |
| 54 | F117_Al lergiesApp let.featur e | |
| 55 | - steps | |
| 56 | adk_s teps.rb | |
| 57 | aller gies_apple t_load_pat h.rb | |
| 58 | keyca pabilities _step.rb | |
| 59 | view_ screen_ste ps.rb | |
| 60 | ... | |
| 61 | ``` | |
| 62 | In the **p roduction/ applets** directory there is a folder ca lled **tes t_resource s** that c ontains th e common/s hared reso urces used in applet acceptanc e testing. | |
| 63 | ||
| 64 | ``` | |
| 65 | - product ion | |
| 66 | - apple ts | |
| 67 | - te st_resourc es | |
| 68 | G emfile | |
| 69 | + helper | |
| 70 | R akefile | |
| 71 | + shared-te st-ruby | |
| 72 | ``` | |
| 73 | ||
| 74 | Here is lo ok at an e xample app let accept ance test **.feature ** file: | |
| 75 | ||
| 76 | ```Feature | |
| 77 | @F117 | |
| 78 | Feature: A llergies A pplet Test | |
| 79 | @allergies _applet | |
| 80 | Scenario: First test to verify allergies applet | |
| 81 | Given user is lo gged into allergies applet in the browse r | |
| 82 | Then t he search results di splay 2 re sults | |
| 83 | Given user selec ts patient 0 in the list | |
| 84 | Then t he panel t itle is "A llergies" | |
| 85 | ``` | |
| 86 | ||
| 87 | Here is lo ok at an e xample app let accept ance test **steps** or **.rb** file: | |
| 88 | ||
| 89 | ```Ruby | |
| 90 | path = Fil e.expand_p ath '..', __FILE__ | |
| 91 | $LOAD_PATH .unshift p ath unless $LOAD_PAT H.include? (path) | |
| 92 | path = Fil e.expand_p ath '../.. /../../sha red-test-r uby', __FI LE__ | |
| 93 | $LOAD_PATH .unshift p ath unless $LOAD_PAT H.include? (path) | |
| 94 | path = Fil e.expand_p ath '../he lper', __F ILE__ | |
| 95 | $LOAD_PATH .unshift p ath unless $LOAD_PAT H.include? (path) | |
| 96 | require 'A ccessBrows erV2.rb' | |
| 97 | class Alle rgies < Ac cessBrowse rV2 | |
| 98 | include Singleton | |
| 99 | def init ialize | |
| 100 | super | |
| 101 | add_ve rify(Cucum berLabel.n ew("Allerg ies Title" ), VerifyC ontainsTex t.new, Acc essHtmlEle ment.new(: css, "#app let-main h 3.panel-ti tle")) | |
| 102 | end | |
| 103 | end | |
| 104 | Given(/^us er is logg ed into al lergies ap plet in th e browser$ /) do | |
| 105 | con= Log inHTMLElem ents.insta nce | |
| 106 | #p Def aultLogin. ehmpui_url | |
| 107 | #p 'star t' | |
| 108 | TestSupp ort.naviga te_to_url( DefaultLog in.ehmpui_ url) | |
| 109 | #p 'end' | |
| 110 | TestSupp ort.wait_f or_page_lo aded | |
| 111 | #sleep 1 00 | |
| 112 | TestSupp ort.driver .manage.wi ndow.maxim ize | |
| 113 | end | |
| 114 | ``` |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2016 Araxis Ltd (www.araxis.com). All rights reserved.