Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fdc3 e2e test #754

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,22 @@ 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. Launch the IDE with a double click on the sikuli IDE jar file

#### 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.

#### 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`
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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("Module not found, can't continue")
exit(1)
except FindFailed:
popup("test failed")
exit(1)

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading