From e7810546894464bd1e55642555b3266b2a067ad9 Mon Sep 17 00:00:00 2001 From: agyen Date: Tue, 27 Aug 2024 09:06:10 +0000 Subject: [PATCH 1/5] e2e test to display pricing data and chart with sikuli --- .../grid-and-chat-display-automated-test.py | 13 +++++++++++++ .../screenshots/chart-opened.png | Bin 0 -> 763 bytes .../screenshots/datagrid-button.png | Bin 0 -> 2015 bytes .../screenshots/goog-symbol.png | Bin 0 -> 467 bytes .../screenshots/modules.png | Bin 0 -> 11631 bytes .../screenshots/open-chart-button.png | Bin 0 -> 1375 bytes 6 files changed, 13 insertions(+) create mode 100644 examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/grid-and-chat-display-automated-test.py create mode 100644 examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/screenshots/chart-opened.png create mode 100644 examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/screenshots/datagrid-button.png create mode 100644 examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/screenshots/goog-symbol.png create mode 100644 examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/screenshots/modules.png create mode 100644 examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/screenshots/open-chart-button.png diff --git a/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/grid-and-chat-display-automated-test.py b/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/grid-and-chat-display-automated-test.py new file mode 100644 index 000000000..1bd97cd32 --- /dev/null +++ b/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/grid-and-chat-display-automated-test.py @@ -0,0 +1,13 @@ +if exists("./screenshots/modules"): + click(Pattern("./screenshots/datagrid-button.png").similar(0.69)) + chart = wait("./screenshots/open-chart-button.png", 20) + click(chart) + if exists("./screenshots/chart-opened.png"): + click(Pattern("./screenshots/goog-symbol.png").exact()) + wait(10) + else: + popup("Chart not available to proceed") + exit() +else: + popup("Module not found, can't continue") + diff --git a/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/screenshots/chart-opened.png b/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/screenshots/chart-opened.png new file mode 100644 index 0000000000000000000000000000000000000000..e161c1282ca2b05c5c7bd45093297055baeeb897 GIT binary patch literal 763 zcmVj0@9Bb{~vv;2$%KjSfc6!pC^b6AI3{Q7p zw?GhntgCMaGr6!qB8}0G{(D++sjBfX#?Rwt6Cw^goN|XtfJNEWAYGgPKXwvireAH6 zy2fbd)gi4|pohQh@QVJ{~b^Y z4p@Z39&}m3u88~>(~3C5hh6Oh6Dv`irGjqhrPb>ZI=nMy>i$s7KE$Sf7^Ul(k z%+g0vf3&6R`Y;OYYn_C`k-@Rqf;vEfuDeU+&si6Gq(;G-AYHBpI7SS`*|p`hOqX>L z(G`EZ5an#tVv89mXd*rZf1QPyU;ac6HpRMcq)>!vBS5#T0SgQdJ(yRLgv&LDmHHZi%?F9de_vzQWZ zzan*N;GXh|0@Car_v2~lbqTE`T_EUta4Y)*Id0#`2^v$X!bvN_Y)2VA{u%<{V* tl}+oVe&Fh5V_t9k4Df}?Z~hAK#cvToPDS77(g*+m002ovPDHLkV1ixN2c?b*!7 z9)IGQ=@}nv`vlKP6gE6GKrUXoyzRs7kbcsXG>R={Bn5l`=j@#C4%Fcb8R7UDfJQ{e z4bQF8vZ~p07qIkLgJ;(-wjK+jj_763Rs0~#WZ$kP)8 z(C8(E`yr^OzTr5I&I9Rbbnt=b^!!5eMF6K~Y}xv;@P`C?Vqn9G4H16b>9gl>bOv;8 znj7j0Hacu>*y3~q4wI%{Uio=2)N4Xd3~bm~hBnVloSp%ln1IMXX`NbtXw}ej(NnTAs;)yWxb%Y2CpH zPe2;$8aqmNVhz^vE?;SdjZQgv>I{WGaOnix4PRKaCJ7z2VLr_MA98m#5f=PcHszyp^~6Ix+eqTRfvBncL8LSCEjx_-G@a0?KZ-03F!AL*o({mc= zHe;~E1JU^1gY!vZT?3Z*rNv7DAv6YSU`C7@hr`KZL*e96>-Fn>HM8azd_5(pF>Lr4 z*Sbx7rmpz08SWvhYtG;Q-u<*>XIhNc6C9laZyz}em$Y85 zJxPtHr)3xk3<3?x)wcHKujyX51Oa$=`tfuVDF!k9VA7zRJl({0KTQvtxU^yq5Upu3 z{QxwyKOB~%i-Gi_oJZ^4JVId?1#gE?zDd0ErUa=_@n4Gj;?p)*L%%0S}U?r zY}#RWmY)xx^a;~wT<37^Xb$Pq!=S6C3v2L?>R1}lT?HDM#myo5V{_%46uYaoOWb)X zmv+t0C_nGV`851e@Nql+iiS@Zw6YqR#VsK=(!6s{MycD2m!exjLk_vsFw}7G%1W`5 zva!1k`pqFL83{vg$I|I9%v>BQ6c0me@!v z4RBDOxnw6OTY?UX8tS9d%heJ&QL0NUDx^V*D!u$yzeG_fRb;nok10sc%0vGY()SG- zS5u;cxoZp5)d;AQVI87-G{0abw?yhC`YkSM1jvHWnQ~h^2AoDbDBVLX8*{XMFODl{ z<%Aey8r;q?LQFrnG_+2ll#06(PtXw44=xR9#PpUlI_mN#(0c~QyghAVRukgWa2Kb~ zueyrIQF^Nynd=*GixFi=YVe5Z6QXhbuxosF^%ZjNE^$sKAGK7ZtFL{^kMI$UWLMXf zImuvl^<~eI-0@^W>V^~TEb-xr8Ol|QDoRY0mk{lbH z@w)K2#k7qPzxdY2oc-D&`%68%*mk3yhfuNU?JP?#RO+c&Bwb$bgH%P!ZK z-?!$wsd>7$_Jc1sKZ(Da?{xb4y4ClL%+y@o`OnU+o_77hHe2l%UWvvgKX2;aQ-8Qh zy+}6pKTlWa;r|cf4NBI9{pUHAJ5TN9uU2fK_e1r%J=4dJjJ2hU7Xl-T!PC{xWt~$( F69CSu+L{0W literal 0 HcmV?d00001 diff --git a/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/screenshots/modules.png b/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/screenshots/modules.png new file mode 100644 index 0000000000000000000000000000000000000000..9259da05052ae28a5cb9da08741d89f6fef84117 GIT binary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p!HrT`6AgTRX#6FiI*uzHKnW9wH zMOV`5_1PD|fGe%z&U^%Bkqc?!hAeEtPp+!uhJbACRHY@$P?(2ca5Ak?U}wn;BLbaijh z<3?L~nNp&jFoB-fr{BYtfbOsVIV>s zK}-aHqvzoR)HqsQJx~%ep(3aZ|)!0z8Z6ey0GiBe4`9xMn!4rUT(54T*AofF?! z{DQ4_Uw@ zZdBLX(Y&#nnNmmNlEGLM1YT1Z=Q|9Wh-CsNWg7&m#tf8d7^>myPNkyer|kZh2}WC( zq|_^~RLWvS``aVOLP{NQ_$@;U+bc1pv2g&B9J25g)4y1R=zYuT+~z&4p`iQxo4jq%4aI$CUWg zRloeN+^tBAFaKIQ)$j}xCz148a#g8NdV_B>*Y8HpS1M2>?H@GILU~kmj2x6Us(1xF zbq%@z(MY$cCgo10UhJ<_t;zUGrN7NRZnTlfO0}VmnjoG4DV10Tq*P)VyhN!4@pM3` zKj>)$F+UjlhLlPy08%Qk3`nWOGN5xRu?$G5#4-S-dh{REi1`EOR4@DUlb%cvGXrl_ hAA(=>WP+F({{m0H$0xSUe=7h0002ovPDHLkV1ni Date: Wed, 28 Aug 2024 10:38:56 +0000 Subject: [PATCH 2/5] Readme for running sikuli e2e test --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 22f36c439..747a188a6 100644 --- a/README.md +++ b/README.md @@ -150,3 +150,19 @@ The necessary solutions have to be built in the following order: 1. Open the Shell Solution 2. Choose "Shell" as the startup project 3. Run + +### Running FDC3 sikuli e2e tests +#### Prerequisite +1. Java version 8 or later + +#### IDE setup +1. [Download](https://launchpad.net/sikuli/+download) sikuli IDE jar file. +2. [Download](https://repo1.maven.org/maven2/org/python/jython-standalone/2.7.1/jython-standalone-2.7.1.jar) jython standalone jar file. +3. Have Sikuli IDE jar file and the jython standalone jar file in the same directory. +4. Launch the IDE with a double click on the sikuli IDE jar file + +#### Run tests +1. Launch FDC3-Chart-and-Grid +2. On the Sikuli IDE click on file -> open +3. Locate the test file and select +4. Click on run(Make sure FDC3-Chart-and-Grid is running in the background and the next application after the IDE) \ No newline at end of file From 8654116d0c416778da28326ebb218a4abfe067ec Mon Sep 17 00:00:00 2001 From: agyen Date: Mon, 2 Sep 2024 09:38:21 +0000 Subject: [PATCH 3/5] Update Readme --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 747a188a6..2e587ad54 100644 --- a/README.md +++ b/README.md @@ -157,12 +157,10 @@ The necessary solutions have to be built in the following order: #### IDE setup 1. [Download](https://launchpad.net/sikuli/+download) sikuli IDE jar file. -2. [Download](https://repo1.maven.org/maven2/org/python/jython-standalone/2.7.1/jython-standalone-2.7.1.jar) jython standalone jar file. -3. Have Sikuli IDE jar file and the jython standalone jar file in the same directory. -4. Launch the IDE with a double click on the sikuli IDE jar file +2. Launch the IDE with a double click on the sikuli IDE jar file #### Run tests -1. Launch FDC3-Chart-and-Grid +1. Launch [FDC3 Chart and Grid Example](####FDC3-Chart-and-Grid-Example) 2. On the Sikuli IDE click on file -> open -3. Locate the test file and select -4. Click on run(Make sure FDC3-Chart-and-Grid is running in the background and the next application after the IDE) \ No newline at end of file +3. Locate the test file and select. +4. Click on the "Run" button in sikuli IDE to execute the script. Ensure that [FDC3 Chart and Grid Example](####FDC3-Chart-and-Grid-Example) is running in the background as Sikuli script will interact with it directly. \ No newline at end of file From 724d9270f1fce8f6727ae80cf9ab165eb5aa7738 Mon Sep 17 00:00:00 2001 From: agyen Date: Fri, 6 Sep 2024 09:28:48 +0000 Subject: [PATCH 4/5] Readme to run sikuli test from cli --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2e587ad54..30b7da7d4 100644 --- a/README.md +++ b/README.md @@ -159,8 +159,13 @@ The necessary solutions have to be built in the following order: 1. [Download](https://launchpad.net/sikuli/+download) sikuli IDE jar file. 2. Launch the IDE with a double click on the sikuli IDE jar file -#### Run tests +#### Run tests from sikuli IDE 1. Launch [FDC3 Chart and Grid Example](####FDC3-Chart-and-Grid-Example) 2. On the Sikuli IDE click on file -> open 3. Locate the test file and select. -4. Click on the "Run" button in sikuli IDE to execute the script. Ensure that [FDC3 Chart and Grid Example](####FDC3-Chart-and-Grid-Example) is running in the background as Sikuli script will interact with it directly. \ No newline at end of file +4. Click on the "Run" button in sikuli IDE to execute the script. Ensure that [FDC3 Chart and Grid Example](####FDC3-Chart-and-Grid-Example) is running in the background as Sikuli script will interact with it directly. + +#### Run tests from CLI +1. Launch [FDC3 Chart and Grid Example](####FDC3-Chart-and-Grid-Example) +2. Open your terminal and run `java -jar PATH-TO-SIKULI/sikuli-ide.exe -r PATH-TO-TEST_FILE` +3. Example `java -jar ./sikulixide-2.0.5-win.jar -r ./grid-and-chat-display-automated-test.py` \ No newline at end of file From 83879ca81f701f7b47e019b6920ad9cfec117fca Mon Sep 17 00:00:00 2001 From: agyen Date: Mon, 9 Sep 2024 11:04:11 +0000 Subject: [PATCH 5/5] Add exit code --- .../grid-and-chat-display-automated-test.py | 31 ++++++++++++------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/grid-and-chat-display-automated-test.py b/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/grid-and-chat-display-automated-test.py index 1bd97cd32..2a609b3d2 100644 --- a/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/grid-and-chat-display-automated-test.py +++ b/examples/fdc3-chart-and-grid/fdc3-chart-and-grid.sikuli/grid-and-chat-display-automated-test.py @@ -1,13 +1,20 @@ -if exists("./screenshots/modules"): - click(Pattern("./screenshots/datagrid-button.png").similar(0.69)) - chart = wait("./screenshots/open-chart-button.png", 20) - click(chart) - if exists("./screenshots/chart-opened.png"): - click(Pattern("./screenshots/goog-symbol.png").exact()) - wait(10) +try: + if exists("./screenshots/modules"): + click(Pattern("./screenshots/datagrid-button.png").similar(0.69)) + chart = wait("./screenshots/open-chart-button.png", 30) + click(chart) + if exists("./screenshots/chart-opened.png"): + wait(5) + click(Pattern("./screenshots/goog-symbol.png").exact()) + wait(10) + exit(0) + else: + popup("Chart not available to proceed") + exit(1) else: - popup("Chart not available to proceed") - exit() -else: - popup("Module not found, can't continue") - + popup("Module not found, can't continue") + exit(1) +except FindFailed: + popup("test failed") + exit(1) + \ No newline at end of file