Skip to content
Open
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
3 changes: 3 additions & 0 deletions testData/deviceReporter/acceptanceTests/kurzweil.JSON
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[
{ "id": "com.kesi.kurzweil" }
]
4 changes: 4 additions & 0 deletions testData/deviceReporter/installedSolutions.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
[
{
"id": "com.kesi.kurzweil"
},

{
"id": "org.gnome.desktop.interface"
},
Expand Down
18 changes: 18 additions & 0 deletions testData/preferences/acceptanceTests/kurzweil_application.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"flat": {
"contexts": {
"gpii-default": {
"name": "Default preferences",
"preferences": {
"http://registry.gpii.net/applications/com.kesi.kurzweil": {
"View.MyZoomValue": 200,
"Speech.EnglishReadingSpeed": 100,
"Speech.EnglishReadingVolume": 100,
"Fonts.FontSize": 20,
"Fonts.FontName": "Times New Roman"
}
}
}
}
}
}
16 changes: 16 additions & 0 deletions testData/preferences/acceptanceTests/kurzweil_common.JSON
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"flat": {
"contexts": {
"gpii-default": {
"name": "Default preferences",
"preferences": {
"http://registry.gpii.net/common/magnification": 200,
"http://registry.gpii.net/common/speechRate": 100,
"http://registry.gpii.net/common/volume": 100,
"http://registry.gpii.net/common/fontSize": 20,
"http://registry.gpii.net/common/fontFaceFontName": "Times New Roman"
}
}
}
}
}
18 changes: 18 additions & 0 deletions testData/preferences/kurzweil_application.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"flat": {
"contexts": {
"gpii-default": {
"name": "Default preferences",
"preferences": {
"http://registry.gpii.net/applications/com.kesi.kurzweil": {
"View.MyZoomValue": 200,
"Speech.EnglishReadingSpeed": 100,
"Speech.EnglishReadingVolume": 100,
"Fonts.FontSize": 20,
"Fonts.FontName": "Times New Roman"
}
}
}
}
}
}
16 changes: 16 additions & 0 deletions testData/preferences/kurzweil_common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"flat": {
"contexts": {
"gpii-default": {
"name": "Default preferences",
"preferences": {
"http://registry.gpii.net/common/magnification": 200,
"http://registry.gpii.net/common/speechRate": 100,
"http://registry.gpii.net/common/volume": 100,
"http://registry.gpii.net/common/fontSize": 20,
"http://registry.gpii.net/common/fontFaceFontName": "Times New Roman"
}
}
}
}
}
53 changes: 53 additions & 0 deletions testData/solutions/kurzweil.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"com.kesi.kurzweil": {
"name": "Kurzweil 3000",
"contexts": {
"OS": [
{
"id": "win32"
}
]
},
"settingsHandlers": {
"configuration": {
"type": "gpii.settingsHandlers.INISettingsHandler",
"options": {
"filename": "${{environment}.APPDATA}\\KESI\\Kurzweil 3000\\gpii\\K3000Settings.k3s"
},
"capabilities": [
"applications.com\\.kesi\\.kurzweil.id",
"display.screenReader.speechRate",
"display.screenEnhancement.magnification",
"-provisional-general.-provisional-volume",
"display.screenEnhancement.fontSize",
"display.screenEnhancement.fontFaceFontName"
],
"capabilitiesTransformations": {
"View\\.MyZoomValue": "http://registry\\.gpii\\.net/common/magnification",
"Speech\\.EnglishReadingSpeed": "http://registry\\.gpii\\.net/common/speechRate",
"Speech\\.EnglishReadingVolume": "http://registry\\.gpii\\.net/common/volume",
"Fonts\\.FontSize": "http://registry\\.gpii\\.net/common/fontSize",
"Fonts\\.FontName": "http://registry\\.gpii\\.net/common/fontFaceFontName"
}
}
},
"configure": [
"settings.configuration"
],
"restore": [
"settings.configuration"
],
"start": [
{
"type": "gpii.launch.exec",
"command": "\"${{registry}.HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\Kurzweil 3000.exe\\}\""
}
],
"stop": [
{
"type": "gpii.windows.killProcessByName",
"filename": "Kurzweil 3000.exe"
}
]
}
}
52 changes: 52 additions & 0 deletions testData/solutions/win32.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,56 @@
{
"com.kesi.kurzweil": {
"name": "Kurzweil 3000",
"contexts": {
"OS": [
{
"id": "win32"
}
]
},
"settingsHandlers": {
"configuration": {
"type": "gpii.settingsHandlers.INISettingsHandler",
"options": {
"filename": "${{environment}.APPDATA}\\KESI\\Kurzweil 3000\\gpii\\K3000Settings.k3s"
},
"capabilities": [
"applications.com\\.kesi\\.kurzweil.id",
"display.screenReader.speechRate",
"display.screenEnhancement.magnification",
"-provisional-general.-provisional-volume",
"display.screenEnhancement.fontSize",
"display.screenEnhancement.fontFaceFontName"
],
"capabilitiesTransformations": {
"View\\.MyZoomValue": "http://registry\\.gpii\\.net/common/magnification",
"Speech\\.EnglishReadingSpeed": "http://registry\\.gpii\\.net/common/speechRate",
"Speech\\.EnglishReadingVolume": "http://registry\\.gpii\\.net/common/volume",
"Fonts\\.FontSize": "http://registry\\.gpii\\.net/common/fontSize",
"Fonts\\.FontName": "http://registry\\.gpii\\.net/common/fontFaceFontName"
}
}
},
"configure": [
"settings.configuration"
],
"restore": [
"settings.configuration"
],
"start": [
{
"type": "gpii.launch.exec",
"command": "\"${{registry}.HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\Kurzweil 3000.exe\\}\""
}
],
"stop": [
{
"type": "gpii.windows.killProcessByName",
"filename": "Kurzweil 3000.exe"
}
]
},

"com.freedomscientific.jaws": {
"name": "JAWS",
"contexts": {
Expand Down
3 changes: 2 additions & 1 deletion tests/platform/index-windows.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ module.exports = [
"windows/windows-nvda-testSpec.js",
"windows/windows-maavis-testSpec.js",
"windows/windows-chrome-testSpec.js",
"windows/windows-dynamicDeviceReporter-testSpec.js"
"windows/windows-dynamicDeviceReporter-testSpec.js",
"windows/windows-kurzweil-testSpec.js"
];
21 changes: 21 additions & 0 deletions tests/platform/windows/configs/windows-kurzweil-config.JSON
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"typeName": "acceptanceTests.windows.kurzweil",
"options": {
"components": {
"server": {
"options": {
"components": {
"deviceReporter": {
"options": {
"installedSolutionsUrl": "file://%root/../../../testData/deviceReporter/acceptanceTests/kurzweil.json"
}
}
}
}
}
}
},
"includes": [
"${universal}/tests/configs/localInstall.json"
]
}
93 changes: 93 additions & 0 deletions tests/platform/windows/windows-kurzweil-testSpec.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
/*

GPII Acceptance Testing

Copyright 2014 Raising the Floor International

Licensed under the New BSD license. You may not use this file except in
compliance with this License.

The research leading to these results has received funding from the European Union's
Seventh Framework Programme (FP7/2007-2013) under grant agreement no. 289016.

You may obtain a copy of the License at
https://github.com/GPII/universal/blob/master/LICENSE.txt
*/


"use strict";
var fluid = require("universal"),
gpii = fluid.registerNamespace("gpii");

gpii.loadTestingSupport();

fluid.registerNamespace("gpii.tests.windows");

gpii.tests.windows.kurzweil = [
{
name: "Testing NP set \"kurzweil_application\" using Flat matchmaker",
userToken: "kurzweil_application",
settingsHandlers: {
"gpii.settingsHandlers.INISettingsHandler": {
"some.app.id": [
{
"settings": {
"View.MyZoomValue": 200,
"Speech.EnglishReadingSpeed": 100,
"Speech.EnglishReadingVolume": 100,
"Fonts.FontSize": 20,
"Fonts.FontName": "Times New Roman"
},
"options": {
"filename": "${{environment}.APPDATA}\\KESI\\Kurzweil 3000\\gpii\\K3000Settings.k3s"
}
}
]
}
},
processes: [
{
"command": "tasklist /fi \"STATUS eq RUNNING\" /FI \"IMAGENAME eq Kurzweil 3000.exe\" | find /I \"Kurzweil 3000.exe\" /C",
"expectConfigured": "1",
"expectRestored": "0"
}
]
},

{
name: "Testing NP set \"kurzweil_common\" using Flat matchmaker",
userToken: "kurzweil_common",
settingsHandlers: {
"gpii.settingsHandlers.INISettingsHandler": {
"some.app.id": [
{
"settings": {
"View.MyZoomValue": 200,
"Speech.EnglishReadingSpeed": 100,
"Speech.EnglishReadingVolume": 100,
"Fonts.FontSize": 20,
"Fonts.FontName": "Times New Roman"
},
"options": {
"filename": "${{environment}.APPDATA}\\KESI\\Kurzweil 3000\\gpii\\K3000Settings.k3s"
}
}
]
}
},
processes: [
{
"command": "tasklist /fi \"STATUS eq RUNNING\" /FI \"IMAGENAME eq Kurzweil 3000.exe\" | find /I \"Kurzweil 3000.exe\" /C",
"expectConfigured": "1",
"expectRestored": "0"
}
]
}
];

module.exports = gpii.test.bootstrap({
testDefs: "gpii.tests.windows.kurzweil",
configName: "windows-kurzweil-config",
configPath: "configs"
}, ["gpii.test.integration.testCaseHolder.windows"],
module, require, __dirname);
10 changes: 10 additions & 0 deletions tests/platform/windows/windows-kurzweil-testSpec.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
windows-kurzweil-testSpec.js

Descriptions:
This will run the acceptance tests for Kurzweil 3000 (KESI). It uses 2 NP sets: kurzweil_common.json and kurzweil_application.json

Prerequisites:
* Kurzweil 3000 needs to be installed
* Need to set up username "gpii" for Kurzweil(incomplete)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does (incomplete) refer to here?

It seems that in order to make this integration more useful, we would need to in addition expose a preference for the Kurzweil username in the user's NP set.

Is there any automated way that we can find to provision the gpii user - can it be done just via the filesystem or is some interaction with the app required?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,
(incomplete) means that we haven't come to a conclusion on how to handle the issue.

If we can get the user's Kurzweil username from the user, I believe we can locate the user's Kurzweil settings folder and change the settings.

* The name "gpii" is required for Kurzweil's settings folder