This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from openfin/w/test-examples
Examples for wdio service and puppeteer
- Loading branch information
Showing
14 changed files
with
11,560 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,4 +7,10 @@ logs | |
OpenFinRVM.exe | ||
OpenFin | ||
|
||
local.json | ||
local.json | ||
|
||
**/.idea | ||
*.iml | ||
*.log | ||
|
||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Example for testing apps built on OpenFin platform with Puppeteer | ||
|
||
|
||
This example demonstrates how to test apps, based on OpenFin Platform, with [Puppeteer](https://pptr.dev/#?product=Puppeteer&version=v12.0.1&show=outline). | ||
|
||
## Run the example | ||
|
||
1. host app.json of the Platform Seeed project on localhost:5555 | ||
2. run "npm run test" | ||
|
||
## Guidelines for writing tests | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
@ECHO OFF | ||
REM This script is intended to be used for launching OpenFin Runtime by ChromeDriver or node of Selenium Grid server. | ||
REM It parses --remote-debugging-port and --config parameters passed by ChromeDriver and passes them to OpenFinRVM.exe | ||
REM %openfinLocation% needs to point to location of OpenFin install directory. | ||
REM devtools_port should NOT be set in app manifest json file | ||
|
||
SETLOCAL ENABLEDELAYEDEXPANSION | ||
SETLOCAL ENABLEEXTENSIONS | ||
|
||
SET args= | ||
|
||
:loop | ||
IF "%1"=="" GOTO cont | ||
SET opt=%1 | ||
SET opt2=%2 | ||
IF "%2" == "" ( | ||
SET opt2Check=%opt2% | ||
) ELSE ( | ||
SET opt2Check=%opt2:"=% | ||
) | ||
IF "%opt%" == "--config" ( | ||
SET startupURL=%2 | ||
GOTO doubleshift | ||
) ELSE ( | ||
IF "%opt%" == "data:" ( | ||
echo "skipping data:" | ||
) ELSE ( | ||
IF "%opt:~0,2%" == "--" ( | ||
IF "%opt2Check:~0,2%" == "--" ( | ||
SET args=%args% %1 | ||
) ELSE ( | ||
IF "%opt2Check%" == "" ( | ||
SET args=%args% %1 | ||
) ELSE ( | ||
IF "%opt2Check%" == "data:" ( | ||
SET args=%args% %1 | ||
) ELSE ( | ||
SET args=%args% %1=%2 | ||
GOTO doubleshift | ||
) | ||
) | ||
) | ||
) | ||
) | ||
) | ||
|
||
SHIFT & GOTO loop | ||
|
||
:doubleshift | ||
SHIFT & SHIFT & GOTO loop | ||
|
||
:cont | ||
|
||
SET openfinLocation=%LocalAppData%\OpenFin | ||
|
||
%openfinLocation%\OpenFinRVM.exe --config=%startupURL% --runtime-arguments="%args%" | ||
|
||
ENDLOCAL | ||
|
Oops, something went wrong.