Added starrynight test setup
This commit is contained in:
parent
b2fa6ead3b
commit
98222abd0a
1
LesionTracker/.gagarin/.gitignore
vendored
Normal file
1
LesionTracker/.gagarin/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
local
|
||||||
136
LesionTracker/.meteor/nightwatch.json
Normal file
136
LesionTracker/.meteor/nightwatch.json
Normal file
@ -0,0 +1,136 @@
|
|||||||
|
{
|
||||||
|
"starrynight": {
|
||||||
|
"version": "3.7.0"
|
||||||
|
},
|
||||||
|
"nightwatch": {
|
||||||
|
"version": "0.8.6"
|
||||||
|
},
|
||||||
|
"src_folders": [
|
||||||
|
"./tests/nightwatch/walkthroughs"
|
||||||
|
],
|
||||||
|
"output_folder": "./tests/nightwatch/reports",
|
||||||
|
"custom_commands_path": [
|
||||||
|
"./tests/nightwatch/commands",
|
||||||
|
"./tests/nightwatch/commands/api/meteor",
|
||||||
|
"./tests/nightwatch/commands/actions",
|
||||||
|
"./tests/nightwatch/commands/components",
|
||||||
|
"./tests/nightwatch/commands/methods"
|
||||||
|
],
|
||||||
|
"custom_assertions_path": [
|
||||||
|
"./tests/nightwatch/assertions"
|
||||||
|
],
|
||||||
|
"globals_path": "./tests/nightwatch/globals.json",
|
||||||
|
"selenium": {
|
||||||
|
"start_process": true,
|
||||||
|
"server_path": "${npm_config_prefix}/lib/node_modules/starrynight/node_modules/selenium-server-standalone-jar/jar/selenium-server-standalone-2.45.0.jar",
|
||||||
|
"log_path": "tests/nightwatch/logs",
|
||||||
|
"host": "127.0.0.1",
|
||||||
|
"port": 4444,
|
||||||
|
"cli_args": {
|
||||||
|
"webdriver.chrome.driver": "${npm_config_prefix}/lib/node_modules/starrynight/node_modules/chromedriver/bin/chromedriver"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"test_settings": {
|
||||||
|
"default": {
|
||||||
|
"launch_url": "http://localhost:5000",
|
||||||
|
"selenium_host": "127.0.0.1",
|
||||||
|
"selenium_port": 4444,
|
||||||
|
"pathname": "/wd/hub",
|
||||||
|
"silent": true,
|
||||||
|
"disable_colors": false,
|
||||||
|
"firefox_profile": false,
|
||||||
|
"ie_driver": "",
|
||||||
|
"screenshots": {
|
||||||
|
"enabled": false,
|
||||||
|
"path": "./tests/nightwatch/screenshots"
|
||||||
|
},
|
||||||
|
"desiredCapabilities": {
|
||||||
|
"browserName": "chrome",
|
||||||
|
"javascriptEnabled": true,
|
||||||
|
"acceptSslCerts": true,
|
||||||
|
"loggingPrefs": {
|
||||||
|
"browser": "ALL"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"exclude": "./tests/nightwatch/unittests/*"
|
||||||
|
},
|
||||||
|
"phantomjs": {
|
||||||
|
"desiredCapabilities": {
|
||||||
|
"browserName": "phantomjs",
|
||||||
|
"javascriptEnabled": true,
|
||||||
|
"databaseEnabled": false,
|
||||||
|
"locationContextEnabled": false,
|
||||||
|
"applicationCacheEnabled": false,
|
||||||
|
"browserConnectionEnabled": false,
|
||||||
|
"webStorageEnabled": false,
|
||||||
|
"acceptSslCerts": true,
|
||||||
|
"rotatable": false,
|
||||||
|
"nativeEvents": false,
|
||||||
|
"phantomjs.binary.path": "${npm_config_prefix}/lib/node_modules/starrynight/node_modules/phantomjs/bin/phantomjs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"travis": {
|
||||||
|
"launch_url": "http://localhost:3000",
|
||||||
|
"selenium_host": "127.0.0.1",
|
||||||
|
"selenium_port": 4444,
|
||||||
|
"pathname": "/wd/hub",
|
||||||
|
"silent": true,
|
||||||
|
"disable_colors": false,
|
||||||
|
"firefox_profile": false,
|
||||||
|
"screenshots": {
|
||||||
|
"enabled": false,
|
||||||
|
"path": "./tests/nightwatch/screenshots"
|
||||||
|
},
|
||||||
|
"desiredCapabilities": {
|
||||||
|
"browserName": "firefox",
|
||||||
|
"javascriptEnabled": true,
|
||||||
|
"databaseEnabled": true,
|
||||||
|
"locationContextEnabled": true,
|
||||||
|
"applicationCacheEnabled": true,
|
||||||
|
"browserConnectionEnabled": true,
|
||||||
|
"webStorageEnabled": true,
|
||||||
|
"acceptSslCerts": true,
|
||||||
|
"rotatable": true,
|
||||||
|
"nativeEvents": true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"travischrome": {
|
||||||
|
"launch_url": "http://localhost:3000",
|
||||||
|
"selenium_host": "127.0.0.1",
|
||||||
|
"selenium_port": 4444,
|
||||||
|
"pathname": "/wd/hub",
|
||||||
|
"silent": true,
|
||||||
|
"disable_colors": false,
|
||||||
|
"firefox_profile": false,
|
||||||
|
"screenshots": {
|
||||||
|
"enabled": false,
|
||||||
|
"path": "./tests/nightwatch/screenshots"
|
||||||
|
},
|
||||||
|
"desiredCapabilities": {
|
||||||
|
"browserName": "chrome",
|
||||||
|
"javascriptEnabled": true,
|
||||||
|
"databaseEnabled": true,
|
||||||
|
"locationContextEnabled": true,
|
||||||
|
"applicationCacheEnabled": true,
|
||||||
|
"browserConnectionEnabled": true,
|
||||||
|
"webStorageEnabled": true,
|
||||||
|
"acceptSslCerts": true,
|
||||||
|
"rotatable": true,
|
||||||
|
"nativeEvents": true,
|
||||||
|
"chromeOptions": {
|
||||||
|
"args": [
|
||||||
|
"--no-sandbox"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"unittests": {
|
||||||
|
"selenium": {
|
||||||
|
"start_process": false,
|
||||||
|
"start_session": false
|
||||||
|
},
|
||||||
|
"filter": "./tests/nightwatch/unittests/*",
|
||||||
|
"exclude": ""
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -47,3 +47,5 @@ clinical:theming-ui
|
|||||||
clinical:fonts
|
clinical:fonts
|
||||||
clinical:glass-ui
|
clinical:glass-ui
|
||||||
clinical:hipaa-logger
|
clinical:hipaa-logger
|
||||||
|
anti:gagarin@=0.4.11
|
||||||
|
check
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
accounts-base@1.2.2
|
accounts-base@1.2.2
|
||||||
accounts-password@1.1.4
|
accounts-password@1.1.4
|
||||||
|
anti:gagarin@0.4.11
|
||||||
anti:i18n@0.4.3
|
anti:i18n@0.4.3
|
||||||
arsnebula:reactive-promise@0.9.1
|
arsnebula:reactive-promise@0.9.1
|
||||||
autoupdate@1.2.4
|
autoupdate@1.2.4
|
||||||
|
|||||||
30
LesionTracker/defaultSettings.js
Normal file
30
LesionTracker/defaultSettings.js
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
Meteor.startup(function() {
|
||||||
|
if (Meteor.settings.dicomWeb) {
|
||||||
|
console.log('dicomWeb settings defined!');
|
||||||
|
console.log(Meteor.settings);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log('Using default LesionTracker dicomWeb settings');
|
||||||
|
Meteor.settings = {
|
||||||
|
"dicomWeb" : {
|
||||||
|
"endpoints": [
|
||||||
|
{
|
||||||
|
"name": "Orthanc",
|
||||||
|
"wadoUriRootNOTE" : "either this uri is not correct for wado-uri or wado-uri is not configured on orthanc currently",
|
||||||
|
"wadoUriRoot" : "http://localhost:8043/wado",
|
||||||
|
"qidoRoot": "http://localhost:8042/dicom-web",
|
||||||
|
"wadoRoot": "http://localhost:8042/dicom-web",
|
||||||
|
"qidoSupportsIncludeField": false,
|
||||||
|
"imageRendering" : "wadouri",
|
||||||
|
"requestOptions" : {
|
||||||
|
"auth": "orthanc:orthanc",
|
||||||
|
"logRequests" : true,
|
||||||
|
"logResponses" : false,
|
||||||
|
"logTiming" : true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
||||||
1
LesionTracker/runGagarinTests.sh
Executable file
1
LesionTracker/runGagarinTests.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
starrynight run-tests --framework gagarin --debug --verbose --webdriver http://localhost:9515 --path ../Packages/*/tests/gagarin/**/*.js
|
||||||
1
LesionTracker/runNightwatchTests.sh
Executable file
1
LesionTracker/runNightwatchTests.sh
Executable file
@ -0,0 +1 @@
|
|||||||
|
starrynight run-tests --framework nightwatch
|
||||||
@ -4,6 +4,11 @@ Meteor.methods({
|
|||||||
* @param filter
|
* @param filter
|
||||||
*/
|
*/
|
||||||
'WorklistSearch': function(filter) {
|
'WorklistSearch': function(filter) {
|
||||||
|
if (!Meteor.settings.dicomWeb) {
|
||||||
|
console.warn('No dicomWeb settings provided! Worklist search is not possible!')
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
// Get the server data. This is user-defined in the
|
// Get the server data. This is user-defined in the
|
||||||
// config.json files used to run the Meteor server
|
// config.json files used to run the Meteor server
|
||||||
var server = Meteor.settings.dicomWeb.endpoints[0];
|
var server = Meteor.settings.dicomWeb.endpoints[0];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user