-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Testing idea for next generation of the conformance framework
- Loading branch information
Showing
7 changed files
with
2,523 additions
and
0 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 |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
|
||
# dependencies | ||
/node_modules | ||
/ng/node_modules | ||
|
||
# build output | ||
/dist |
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,6 @@ | ||
<html> | ||
<body> | ||
<p>Hello Vite!</p> | ||
<script src="src/ui/testing-app.ts"></script> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
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,18 @@ | ||
{ | ||
"name": "fdc3-conformance", | ||
"private": true, | ||
"version": "2.2-alpha", | ||
"scripts": { | ||
"dev": "vite --port 3001" | ||
}, | ||
"dependencies": { | ||
"@cucumber/cucumber": "^10.8.0", | ||
"@cucumber/html-formatter": "^21.4.0", | ||
"@finos/fdc3": "^2.1.0-beta.6", | ||
"tsx": "^4.5.0", | ||
"typescript": "^5.3.2" | ||
}, | ||
"devDependencies": { | ||
"vite": "^5.3.3" | ||
} | ||
} |
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 @@ | ||
alert("hello") |
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,30 @@ | ||
Feature: FDC3 Raise Intents | ||
|
||
Background: | ||
Given A Desktop Agent in "api1" | ||
And "textContextX" is a context object with the following contents | ||
| type | | ||
| textContextX | | ||
And the following apps are configured with the following behaviours | ||
| App | Usage | ListensFor (pattern: intent([context-types…]) (=> result-type)) | On Startup | | ||
| A | Raise Intent tests without results | aTestingIntent(testContextX,testContextZ) sharedTestingIntent1(testContextX) | addIntentListener() for given intents | | ||
| B | Raise Intent tests with Context results | bTestingIntent(testContextY) sharedTestingIntent1(testContextX, testContextY) => testContextY | addIntentListener() for given intents | | ||
| C | Find Intent tests (never started) | cTestingIntent(testContextX) => testContextZ | addIntentListener() for given intents | | ||
| D | Find Intent tests (never started) | sharedTestingIntent2(testContextX) => testContextZ | addIntentListener() for given intents | | ||
| E | Find Intent & Raise Intent with Channel result | sharedTestingIntent2(testContextY) => channel | addIntentListener() for given intents | | ||
| F | Find Intent & Raise Intent with PrivateChannel result | sharedTestingIntent2(testContextY) => channel<testContextZ> * | addIntentListener() for given intents | | ||
| G | Find Intent tests (never started) | sharedTestingIntent2(testContextY) | addIntentListener() for given intents | | ||
| H | Raise Intent (bad config/behavior) | sharedTestingIntent2(testContextY) => testContextZ | - no action | | ||
| I | Raise Intent (bad config/behavior) | sharedTestingIntent2(testContextY) => testContextZ | addIntentListener(‘MadeUpIntent’, handler) | | ||
| J | PrivateChannels are private | privateChannelIsPrivate(privateChannelDetails) => privateChannelIsPrivateResult | Tries to retrieve privateChannel sent in the privateChannelDetails context, fails | | ||
| K | PrivateChannel lifecycle events | kTestingIntent(testContextX) => channel<testContextZ> | addIntentListener() for given intents | | ||
|
||
Scenario: 2.0-RaiseIntentSingleResolve | ||
When I call "api1" with "raiseIntent" with parameters "aTestingIntent" and "{testContextX}" | ||
And I refer to {result} as "intentResolution" | ||
Then "{intentResoltion}" is an object with the following contents | ||
| source.appId | intent | source.instanceId | | ||
| A | aTestingIntent | <exists> | | ||
And I call "intentResolution" with "getResult" | ||
And "{result}" is void | ||
And I can close the app with instanceId "{intentResoltion.source.instanceId}" |
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,15 @@ | ||
Feature: FDC3 Open | ||
App A calls a function (see below) to open a second app, B | ||
|
||
Background: | ||
Given A Desktop Agent in "api1" | ||
And "AppB" is the ID of an FDC3 Application named "AppBName" | ||
|
||
@FDC3-1.2 | ||
Scenario: AOpensB1 | ||
When I call "api1" with "open" with parameter "AppBName" | ||
Then "{result}" is an object with the following contents | ||
| appIdentifier | instanceId | | ||
| AppB | <exists> | | ||
And I receive an "app-opened" event with appId "AppB" | ||
And I can close the app with instanceId "{result.instanceId}" |