ui5_week_0_unit_5_agace_exercise.docx

Upload: yassine-chaabo

Post on 28-Feb-2018

215 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/25/2019 ui5_Week_0_Unit_5_AGACE_Exercise.docx

    1/10

    WEEK 0 UNIT 5A GLANCE AT THE CODING EXERCISES

    Please use these instructions to perform the eercises in the course as sho!n in the "i#eo$

    Table of Contents

    % A## the "ali#ator script to &our app pro'ect$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$() *ali#ate &our eercise co#e$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$+( Loa# an eercise solution$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$,+ *ali#ate &our -onus eercise$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$.

    Preview

    Figure 1 - The code validator running in your app

  • 7/25/2019 ui5_Week_0_Unit_5_AGACE_Exercise.docx

    2/10

    OpenSAP / De"elopin0 1e- Apps !ith SAP2I3

    Using the coding exercise handoutsThis section eplains ho! to use the han#outs for the co#in0 eercises in this course$

    Exlanation !creenshot

    %$ Open the eercise #ocument

    after &ou ha"e !atche# the unit"i#eo$

    4ollo! the steps #escri-e# inthe #ocument -& appl&in0 thechan0es mar5e# in &ello! to&our app pro'ect in SAP 1e-IDE$

    Note" Exercise t#esThe eercises for a unit can -eeither confi0uration steps6 co#echan0es6 or a miture of -oth

    )$ Co#e chan0es follo! thefollo!in0 pattern7

    4ile to -e chan0e#

    Chan0es mar5e# in

    &ello!

    Eplanation of the

    chan0es -elo!

    ($ Chec5 the result of &ourchan0es fre8uentl& -& runnin0the app$

    Note"9a5e sure that &our chan0e# filesare sa"e#$ 2nsa"e# chan0es aremar5e# !ith an asteris5 :;< -ehin#

    the filename$

    Copyright/Trademark

    http://www.sap.com/company/legal/copyright/index.epxhttp://www.sap.com/company/legal/copyright/index.epx
  • 7/25/2019 ui5_Week_0_Unit_5_AGACE_Exercise.docx

    3/10

    OpenSAP / De"elopin0 1e- Apps !ith SAP2I3

    $ %&& T'E (%)I&%T*+ !C+IPT T* ,*U+ %PP P+*-ECT

    This script !ill chec5 the course eercises an# onl& nee#s to -e set up once for each app pro'ect$weba.index/htl

    ope(AP - Developi# )eb App% *ith (APU+

    The "ali#ator script for this course is hoste# on a pu-lic GitHu- repositor&$ =ust a## the script ta0 afterthe SAP2I3 -oostrap ta0$ It in'ects a -utton that can run tests a0ainst &our application co#in0 to "erif&the functionalit& that &ou ha"e a##e#$

    Note" (alidator issuesAs the 2RL an# functionalit& of the "ali#ator ma& chan0e at short notice #urin0 the course 6 -e sure tochec5 the forum announcements for a##itional #etails$ Runnin0 the "ali#ator is optional6 -ut !erecommen# &ou chec5 &our eercise co#in0 !ith it$

    Copyright/Trademark

    http://www.sap.com/company/legal/copyright/index.epxhttp://www.sap.com/company/legal/copyright/index.epx
  • 7/25/2019 ui5_Week_0_Unit_5_AGACE_Exercise.docx

    4/10

    OpenSAP / De"elopin0 1e- Apps !ith SAP2I3

    1 (%)I&%TE ,*U+ E2E+CI!E C*&E

    This script !ill chec5 the eercises startin0 1ee5 % 2nit % to 1ee5 + 2nit 3 an# the -onus eercises$*ali#atin0 &our co#e is optional -ut ma& -e helpful to chec5 if &our eercise co#e is correct$

    Exlanation !creenshot

    %$ After a##in0 the script ta0 to&our >in#e$html? file6 run &ourapp !ith one of the runconfi0urations$

    ,ou should see a blue buttonwith a wrench icon in thelower left area of the screen/

    Note" (alidator issuesAs the 2RL an# functionalit& of the"ali#ator ma& chan0e at short

    notice #urin0 the course6 -e sure tochec5 the forum announcementsfor a##itional #etails$

    )$ Clic5 the >*ali#ate? -utton orpress 4@ to open the "ali#atormenu$

    ($ Clic5 the Select menu to openthe unit selection$

    Note" Coo3iesThe first time &ou call the "ali#ator6

    or !hen &ou clear &our -ro!sercoo5ies6 the selection is empt&$After!ar#s6 the last eecute# unit!ill -e sa"e# as a coo5ie for &ourcon"enience$

    +$ Choose the unit that &ou arecurrentl& !or5in0 on an# &ou!ant to "ali#ate$

    3$ The tests !ill automaticall&start to run an# the pro0ress isup#ate# after each test is

    eecute#$

    Note" Previous testsAs &ou -uil# up &our app #urin0 thecourse6 &ou !ill refactor someparts$ Therefore6 not all tests fromthe pre"ious units !ill runsuccessfull&$

    Copyright/Trademark

    http://www.sap.com/company/legal/copyright/index.epxhttp://www.sap.com/company/legal/copyright/index.epx
  • 7/25/2019 ui5_Week_0_Unit_5_AGACE_Exercise.docx

    5/10

    OpenSAP / De"elopin0 1e- Apps !ith SAP2I3

    Exlanation !creenshot

    ,$ If there is a pro-lem !ith &oureercise co#in06 &ou !ill 0et anerror messa0e in the result!in#o! of the "ali#ator$

    $ Chec5 the error messa0e6 fithe co#e that causes the issue6an# run the "ali#ator a0ain$

    .$ Bou can tri00er another test run-& clic5in0 the *ali#ate -uttona0ain if &ou thin5 that there !asa pro-lem !ith the testeecution$

    Note" Test logicThe tests !ill chec5 that certain

    con#itions are fulfille# in &our app$The& rel& on specific controls -ein0use#6 nestin0 or#ers6 a00re0ations-ein0 fille#6 or IDs set to a "aluethat is specifie# in the eercise#ocuments$ Bou nee# to stic5closel& to the solution eercises6other!ise the "ali#ation !illpro-a-l& not !or5$

    @$ Once all tests ha"e runsuccessfull&6 the "ali#ator !ill#ispla& a success messa0e$

    ,ou have successfull# validated#our exercises/

    Copyright/Trademark

    http://www.sap.com/company/legal/copyright/index.epxhttp://www.sap.com/company/legal/copyright/index.epx
  • 7/25/2019 ui5_Week_0_Unit_5_AGACE_Exercise.docx

    6/10

    OpenSAP / De"elopin0 1e- Apps !ith SAP2I3

    4 )*%& %N E2E+CI!E !*)UTI*N

    This section eplains ho! to loa# an eercise solution for one of the units from the co#e repositor&

    Exlanation !creenshot

    %$ In SAP 1e- IDE6 0o to ile 6git 6 Clone +eositor# an#simpl& enter the follo!in0 2RLin the confi0uration #ialo07

    htts"..github/co.!%P.oen!%P7ui57course/git

    Note" %uthenticationLea"e all other fiel#s of the #ialo0empt&$ No authentication is nee#e#for this Git repositor&$

    )$ If &ou encounter this #ialo0press the >Do it later? -utton

    Copyright/Trademark

    https://github.com/SAP/openSAP-ui5-course.githttps://github.com/SAP/openSAP-ui5-course.githttp://www.sap.com/company/legal/copyright/index.epxhttps://github.com/SAP/openSAP-ui5-course.githttps://github.com/SAP/openSAP-ui5-course.githttp://www.sap.com/company/legal/copyright/index.epx
  • 7/25/2019 ui5_Week_0_Unit_5_AGACE_Exercise.docx

    7/10

    OpenSAP / De"elopin0 1e- Apps !ith SAP2I3

    Exlanation !creenshot

    ($ The Git pro'ect !ith the solutionco#e an# the sample moc5#ata is a##e# to &our!or5space$

    +$ Cop& the contents of one of thefol#ers :e$0$ !)u% is !ee5 )unit %< o"er to &our app pro'ectto reset &our !or5space$

    Note" Co#ing foldersRi0htclic5 an# select >cop&? on thesolution fol#er$ Then ri0htclic5 &ourpro'ect root fol#er an# select>paste?$

    or technical reasons8 it is notossible to override folders in

    !%P Web I&E9 #ou have to deleteor renae the old contents in thero:ect folder first/

    3$ 1e !ill pro"i#e the solutions ona !ee5l& -asis$ Therefore6 &ou!ill ha"e to fetch an# re-ase ifthe solution for &our unit is not&et in &our !or5space$

    To #o so6 select the fol#er>opensapui3%? in &our!or5space an# s!itch to theGit pane on the ri0ht si#e$

    Copyright/Trademark

    http://www.sap.com/company/legal/copyright/index.epxhttp://www.sap.com/company/legal/copyright/index.epx
  • 7/25/2019 ui5_Week_0_Unit_5_AGACE_Exercise.docx

    8/10

    OpenSAP / De"elopin0 1e- Apps !ith SAP2I3

    Exlanation !creenshot

    ,$ Clic5 the >4etch? -utton6 !aitfor the success messa0e$ Thenclic5 the >Re-ase? -utton toup#ate &our pro'ect$

    $ If there are ne! chan0es in theGit repositor&6 ne! files an#fol#ers !ill no! -e a##e# to&our !or5space$

    Copyright/Trademark

    http://www.sap.com/company/legal/copyright/index.epxhttp://www.sap.com/company/legal/copyright/index.epx
  • 7/25/2019 ui5_Week_0_Unit_5_AGACE_Exercise.docx

    9/10

    OpenSAP / De"elopin0 1e- Apps !ith SAP2I3

    ; (%)I&%TE ,*U+

  • 7/25/2019 ui5_Week_0_Unit_5_AGACE_Exercise.docx

    10/10

    OpenSAP / De"elopin0 1e- Apps !ith SAP2I3

    Exlanation !creenshot

    ,$ Start the 8ui for the -onuseercise$ There !ill onl& -e one8uestion !ith an input fiel# for&our ans!er$

    $ Paste the co#e in thecorrespon#in0 fiel# of theopenSAP eercise platform an#press su-mit to score the etrapoints$

    Coding !alesAn& soft!are co#in0 or co#e linesFstrin0s :>Co#e?< pro"i#e# in this #ocumentation are onl& eamples6an# are not inten#e# for use in a pro#ucti"e s&stem en"ironment$ The Co#e is onl& inten#e# to -ettereplain an# "isualie the s&nta an# phrasin0 rules for certain SAP co#in0$ SAP #oes not !arrant thecorrectness or completeness of the Co#e pro"i#e# herein an# SAP shall not -e lia-le for errors or#ama0e cause# -& use of the Co#e6 ecept !here such #ama0e !as cause# -& SAP !ith intent orthrou0h 0ross ne0li0ence$

    Copyright/Trademark

    http://www.sap.com/company/legal/copyright/index.epxhttp://www.sap.com/company/legal/copyright/index.epx