Skip to content

Commit 8393a72

Browse files
committed
AUT-98: added example app.json
1 parent b8fcf7b commit 8393a72

File tree

3 files changed

+31
-3
lines changed

3 files changed

+31
-3
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ In Summary
4747
### Usage
4848
The following steps will help you run tests:
4949
1. Start chromedriver.exe. You can specify --verbose command line argument to get more loggings.
50-
2. Run all tests
50+
2. Host test/app.json in a webserver, such as localhost:8000, and update test/config.js with the correct URL.
51+
3. Run all tests
5152
```bash
5253
grunt
5354
```

test/app.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"startup_app": {
3+
"name": "Hello OpenFin",
4+
"url": "https://demoappdirectory.openf.in/desktop/config/apps/OpenFin/HelloOpenFin/index.html",
5+
"uuid": "OpenFinHelloWorld",
6+
"applicationIcon": "http://demoappdirectory.openf.in/desktop/config/apps/OpenFin/HelloOpenFin/img/openfin.ico",
7+
"autoShow": false,
8+
"defaultHeight": 525,
9+
"defaultWidth": 395,
10+
"maxWidth": 395,
11+
"maxHeight": 525,
12+
"defaultTop": 50,
13+
"defaultLeft": 10,
14+
"resizable": false,
15+
"maximizable": false,
16+
"frame": false,
17+
"cornerRounding": {
18+
"width": 5,
19+
"height": 5
20+
}
21+
},
22+
"runtime": {
23+
"arguments": "--v=1 --enable-chromium-window-alert --allow-http-screen-capture ",
24+
"version": "9.61.33.22"
25+
},
26+
"splashScreenImage": "https://cdn.openfin.co/demos/hello/splashscreen/splash_hello.png"
27+
}

test/config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ module.exports = (function () {
1111
chromeOptions: {
1212
extensions: [],
1313
binary: 'RunOpenFin.bat',
14-
args: ['--config=https://demoappdirectory.openf.in/desktop/config/apps/OpenFin/HelloOpenFin/selenium.json']
14+
args: ['--config=http://localhost:8000/app.json']
1515
}
1616
},
1717
remoteDriverHost: "localhost",
1818
remoteDriverPort: 9515,
1919
//remoteDriverPath: "/wd/hub",
2020
testTimeout: 20000,
21-
expectedRuntimeVersion: "7.53.21.6"
21+
expectedRuntimeVersion: "9.61.33.22"
2222
};
2323

2424
config.remoteDriverUrl = "http://" + config.remoteDriverHost + ":" + config.remoteDriverPort +

0 commit comments

Comments
 (0)