Skip to content

Commit

Permalink
Final update for JSON test files for Android test engine
Browse files Browse the repository at this point in the history
  • Loading branch information
BEChiaha committed Aug 2, 2024
1 parent 3e1eace commit 789a6d5
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 18 deletions.
15 changes: 8 additions & 7 deletions apps/teams-test-app/e2e-test-data/app.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"name": "App",
"platforms": ["iOS","WEB"],
"platforms": ["*"],
"testCases": [
{
"title": "openLink API Call - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"inputValue": "https://bing.com",
"expectedWindowOpenTarget": "https://bing.com"
},
{
"title": "openLink startCall API Call - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"inputValue": "https://teams.microsoft.com/l/call/0/0?users=testUser1,testUser2&withVideo=true&source=test",
"expectedAlertValue": "startCall called with {\"targets\":[\"testUser1\",\"testUser2\"],\"requestedModalities\":[\"audio\",\"video\"],\"source\":\"test\"}",
"expectedTestAppValue": "Completed"
Expand All @@ -23,7 +23,7 @@
"title": "openLink openAppInstallDialog API Call - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"inputValue": "https://teams.microsoft.com/l/app/testAppId",
"expectedAlertValue": "openAppInstallDialog called with {\"appId\":\"testAppId\"}",
"expectedTestAppValue": "Completed"
Expand All @@ -39,7 +39,7 @@
{
"title": "openLink composeMeeting API Call - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"boxSelector": "#box_e.jxecuteDeepLink2",
"inputValue": "https://teams.microsoft.com/l/meeting/new?subject=testSubject&attendees=testAttendee1,testAttendee2&startTime=testStartTime&endTime=testEndTime&content=testContent",
"expectedAlertValue": "composeMeeting called with {\"attendees\":[\"testAttendee1\",\"testAttendee2\"],\"startTime\":\"testStartTime\",\"endTime\":\"testEndTime\",\"subject\":\"testSubject\",\"content\":\"testContent\"}",
"expectedTestAppValue": "Completed"
Expand All @@ -66,7 +66,7 @@
"title": "openLink stageView.open API Call with thread id - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"inputValue": "https://teams.microsoft.com/l/stage/testAppId/0?context=%7B%22contentUrl%22%3A%22testContentUrl%22%2C%22websiteUrl%22%3A%22testWebsiteUrl%22%2C%22title%22%3A%22TestTitle%22%2C%22threadId%22%3A%22TestThreadId%22%7D",
"expectedAlertValue": "stageView.open called with {\"appId\":\"testAppId\",\"contentUrl\":\"testContentUrl\",\"threadId\":\"TestThreadId\",\"title\":\"TestTitle\",\"websiteUrl\":\"testWebsiteUrl\"}",
"expectedTestAppValue": "Completed"
Expand All @@ -75,14 +75,15 @@
"title": "openLink stageView.open API Call without thread id - Success",
"type": "callResponse",
"boxSelector": "#box_executeDeepLink2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"inputValue": "https://teams.microsoft.com/l/stage/testAppId/0?context=%7B%22contentUrl%22%3A%22testContentUrl%22%2C%22websiteUrl%22%3A%22testWebsiteUrl%22%2C%22title%22%3A%22TestTitle%22%7D",
"expectedAlertValue": "stageView.open called with {\"appId\":\"testAppId\",\"contentUrl\":\"testContentUrl\",\"title\":\"TestTitle\",\"websiteUrl\":\"testWebsiteUrl\"}",
"expectedTestAppValue": "Completed"
},
{
"title": "openLink appLink domain doesn't match API Call - executeDeepLink called",
"type": "callResponse",
"platformsExcluded": ["Android"],
"boxSelector": "#box_executeDeepLink2",
"inputValue": "https://contoso.com/l/entity/testAppId/tasklist123",
"expectedWindowOpenTarget": "https://contoso.com/l/entity/testAppId/tasklist123",
Expand Down
1 change: 1 addition & 0 deletions apps/teams-test-app/e2e-test-data/chat.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
{
"title": "openChat API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"version": ">2.0.0-beta.3 && <=2.17.0",
"boxSelector": "#box_openChat",
"inputValue": {
Expand Down
4 changes: 2 additions & 2 deletions apps/teams-test-app/e2e-test-data/conversation.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"title": "getChatMembers API Call - Success",
"type": "callResponse",
"version": ">2.0.0-beta.3",
"platformsExcluded": ["Web"],
"platformsExcluded": ["Web","Android"],
"boxSelector": "#box_getChatMembers",
"expectedAlertValue": "getChatMembers called",
"expectedTestAppValue": "{\"members\":[{\"principalName\":\"TestUser\"}]}"
Expand Down Expand Up @@ -54,7 +54,7 @@
{
"title": "openConversation API Call - with startConversation",
"version": "2.0.0-beta.2",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_openConversation",
"type": "registerAndRaiseEvent",
"inputValue": {
Expand Down
1 change: 1 addition & 0 deletions apps/teams-test-app/e2e-test-data/dialog.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
{
"title": "dialogSubmit API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"testUrlParams": [["frameContext", "task"]],
"boxSelector": "#box_dialogSubmitWithInput",
"inputValue": {
Expand Down
13 changes: 8 additions & 5 deletions apps/teams-test-app/e2e-test-data/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
{
"title": "openFilePreview API Call - Success",
"type": "callResponse",
"platformsExcluded":["Android"],
"version": "2.0.0-beta.2",
"boxSelector": "#box_openFilePreview",
"inputValue": {
Expand Down Expand Up @@ -59,7 +60,7 @@
{
"title": "getCloudStorageFolders API Call - Failure (Not Full Trust)",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"version": ">2.0.0-beta.5",
"boxSelector": "#box_getCloudStorageFolders2",
"inputValue": "testChannelId",
Expand All @@ -69,6 +70,7 @@
{
"title": "getCloudStorageFolders API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"version": "2.0.0-beta.2",
"boxSelector": "#box_getCloudStorageFolders",
"inputValue": "testChannelId",
Expand All @@ -87,6 +89,7 @@
{
"title": "addCloudStorageFolder API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"version": "2.0.0-beta.2",
"boxSelector": "#box_addCloudStorageFolder",
"inputValue": "testChannelId",
Expand Down Expand Up @@ -115,7 +118,7 @@
"title": "copyMoveFiles API Call - Success",
"version": ">2.0.0-beta.2",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_copyMoveFiles",
"inputValue": {
"selectedFiles": [
Expand Down Expand Up @@ -147,7 +150,7 @@
{
"title": "openCloudStorageFile API Call - Success",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"boxSelector": "#box_openCloudStorageFile",
"inputValue": {
"file": {
Expand All @@ -166,7 +169,7 @@
{
"title": "getExternalProviders API Call - Success",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"version": ">2.0.0",
"boxSelector": "#box_getExternalProviders",
"checkboxState": true,
Expand All @@ -176,7 +179,7 @@
{
"title": "getCloudStorageFolderContents API Call - Success",
"type": "callResponse",
"platformsExcluded": ["iOS"],
"platformsExcluded": ["iOS","Android"],
"version": ">2.0.0-beta.2",
"boxSelector": "#box_getCloudStorageFolderContents",
"inputValue": {
Expand Down
3 changes: 2 additions & 1 deletion apps/teams-test-app/e2e-test-data/geoLocation.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@
{
"title": "getCurrentLocation API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Web"],
"boxSelector": "#box_getCurrentLocation",
"requestPermissionBeforeThisCall": {
"boxSelector": "#box_requestGeoLocationPermission",
"consentPermission": true
},
"expectedAlertValue": ["getCurrentLocation is called"],
"expectedTestAppValue": "{\"latitude\":51.50735,\"longitude\":-0.127758,\"accuracy\":2,\"timestamp\":200}"
"expectedTestAppValue": "{\"latitude\":51.50735,\"longitude\":-0.127758,\"accuracy\":2.01,\"timestamp\":200}"
},
{
"title": "getCurrentLocation API Call - Success",
Expand Down
11 changes: 10 additions & 1 deletion apps/teams-test-app/e2e-test-data/media.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Media",
"platforms": "Web",
"platforms": ["Web","Android"],
"testCases": [
{
"title": "selectMedia API Call - Success",
Expand All @@ -24,11 +24,20 @@
{
"title": "getMedia API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Android"],
"boxSelector": "#box_getMedia",
"inputValue": {},
"expectedAlertValue": ["selectMedia called with ##JSON_INPUT_VALUE##", "getMedia called with \"ABCDEFGHIJKL\""],
"expectedTestAppValue": "Received Blob (length: 74163)"
},
{
"title": "getMedia API Call - Success",
"type": "callResponse",
"platformsExcluded": ["Web","iOS"],
"boxSelector": "#box_getMedia",
"inputValue": {},
"expectedTestAppValue": "{\"errorCode\":500,\"message\":\"An internal server error occurred\"}"
},
{
"title": "viewImagesWithIds API Call - Success",
"type": "callResponse",
Expand Down
2 changes: 1 addition & 1 deletion apps/teams-test-app/e2e-test-data/meetingRoom.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "MeetingRoom",
"platforms": "Web",
"platforms": ["Web","Android"],
"version": ">2.0.0-beta.0",
"checkIsSupported": {
"expectedOutput": "MeetingRoom is not supported"
Expand Down
2 changes: 1 addition & 1 deletion apps/teams-test-app/e2e-test-data/secondaryBrowser.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "SecondaryBrowser",
"version": ">=2.12.0",
"platforms": "iOS",
"platforms": ["iOS", "Android"],
"checkIsSupported": {},
"testCases": [
{
Expand Down

0 comments on commit 789a6d5

Please sign in to comment.