提交 43d0030c 编写于 作者: Z zhaoyuan17

Update xts amsmultiapp code

Signed-off-by: Nzhaoyuan17 <zhaoyuan17@huawei.com>
上级 075f1601
...@@ -19,8 +19,8 @@ group("aafwk_standard") { ...@@ -19,8 +19,8 @@ group("aafwk_standard") {
deps = [ deps = [
"abilitymanager:actsabilitymanagertest", "abilitymanager:actsabilitymanagertest",
"amsabilitymanager/amsMissionSnapshotTest:ActsAmsMissionSnapshotTest", "amsabilitymanager/amsMissionSnapshotTest:ActsAmsMissionSnapshotTest",
"amsabilitymanager/amsMissionSnapshotTestSingleton:amsMissionSnapshotTestSingleton", "amsabilitymanager/amsMissionSnapshotTestSingleton:ActsAmsMissionSnapshotTestSingleton",
"amsabilitymanager/amsMissionSnapshotTestSingletonS:amsMissionSnapshotTestSingletonS", "amsabilitymanager/amsMissionSnapshotTestSingletonS:ActsAmsMissionSnapshotTestSingletonS",
"amsdatauriutils:ActsAmsDataUriUtilsTest", "amsdatauriutils:ActsAmsDataUriUtilsTest",
"amsmultiapp/MultiAppPage:ActsAmsMultiPageApp", "amsmultiapp/MultiAppPage:ActsAmsMultiPageApp",
"amsmultiapp/MultiAppPageConnectService:ActsAmsMultiPageAppConnectService", "amsmultiapp/MultiAppPageConnectService:ActsAmsMultiPageAppConnectService",
...@@ -34,12 +34,12 @@ group("aafwk_standard") { ...@@ -34,12 +34,12 @@ group("aafwk_standard") {
"amsmultiapp/MultiAppSimultaneousOnline_test:ActsAmsMultiAppPageClone", "amsmultiapp/MultiAppSimultaneousOnline_test:ActsAmsMultiAppPageClone",
"amsmultiapp/MultiAppTermination:ActsAmsMultiAppTermination", "amsmultiapp/MultiAppTermination:ActsAmsMultiAppTermination",
"amsmultiapp/MultiAppTermination_test:ActsAmsMultiAppPageCloneTermination", "amsmultiapp/MultiAppTermination_test:ActsAmsMultiAppPageCloneTermination",
"amsmultiapp/amsmultiapppageexecutor:MultiAppPageExecutor", "amsmultiapp/amsmultiapppageexecutor:ActsAmsMultiAppPageExecutor",
"amsmultiapp/amsmultiappserviceexecutor:MultiAppServiceExecutor", "amsmultiapp/amsmultiappserviceexecutor:ActsAmsMultiAppServiceExecutor",
"amsmultiapp/amsmultiappservicestarter:MultiAppServiceStarter", "amsmultiapp/amsmultiappservicestarter:ActsAmsMultiAppServiceStarter",
"amsmultiapp/amsmultiapptester:MultiAppTester", "amsmultiapp/amsmultiapptester:ActsAmsMultiAppTester",
"amsmultiapp/amsmultidataabilityclone:amsMultiDataAbilityClone", "amsmultiapp/amsmultidataabilityclone:ActsAmsMultiDataAbilityClone",
"amsmultiapp/amsmultidataabilityself:amsMultiDataAbilitySelf", "amsmultiapp/amsmultidataabilityself:ActsAmsMultiDataAbilitySelf",
"amszipfileunzipfilest:ActsAmsZipfileUnzipfileSTest", "amszipfileunzipfilest:ActsAmsZipfileUnzipfileSTest",
"context:context", "context:context",
"featureability:featureability", "featureability:featureability",
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
"kits": [ "kits": [
{ {
"test-file-name": [ "test-file-name": [
"amsMissionSnapshotTest.hap", "ActsAmsMissionSnapshotTest.hap",
"amsMissionSnapshotTestSingleton.hap", "ActsAmsMissionSnapshotTestSingleton.hap",
"amsMissionSnapshotTestSingletonS.hap" "ActsAmsMissionSnapshotTestSingletonS.hap"
], ],
"type": "AppInstallKit", "type": "AppInstallKit",
"cleanup-apps": true "cleanup-apps": true
......
...@@ -106,7 +106,7 @@ describe('ActsMissionSnapshotTest', function () { ...@@ -106,7 +106,7 @@ describe('ActsMissionSnapshotTest', function () {
data.snapshot.getPixelBytesNumber().then(function (data){ data.snapshot.getPixelBytesNumber().then(function (data){
console.debug("=ACTS_MissionSnapshot_0200 ====>" console.debug("=ACTS_MissionSnapshot_0200 ====>"
+"(data.snapshot.getPixelBytesNumber()=)" + data) +"(data.snapshot.getPixelBytesNumber()=)" + data)
expect(data != 0).assertEqual(true); expect(data > 0).assertEqual(true);
console.debug('ACTS_MissionSnapshot_0200====<end') console.debug('ACTS_MissionSnapshot_0200====<end')
done(); done();
}) })
...@@ -189,7 +189,7 @@ describe('ActsMissionSnapshotTest', function () { ...@@ -189,7 +189,7 @@ describe('ActsMissionSnapshotTest', function () {
data.snapshot.getPixelBytesNumber().then(function (data){ data.snapshot.getPixelBytesNumber().then(function (data){
console.debug("=ACTS_MissionSnapshot_0300 ====> " console.debug("=ACTS_MissionSnapshot_0300 ====> "
+("data.snapshot.getPixelBytesNumber()=" + data)) +("data.snapshot.getPixelBytesNumber()=" + data))
expect(data != 0).assertEqual(true); expect(data > 0).assertEqual(true);
unsubscribe(".then() ", subscriber); unsubscribe(".then() ", subscriber);
console.debug('ACTS_MissionSnapshot_0300====<end') console.debug('ACTS_MissionSnapshot_0300====<end')
done(); done();
...@@ -301,7 +301,7 @@ describe('ActsMissionSnapshotTest', function () { ...@@ -301,7 +301,7 @@ describe('ActsMissionSnapshotTest', function () {
data.snapshot.getPixelBytesNumber().then(function (data){ data.snapshot.getPixelBytesNumber().then(function (data){
console.debug("=ACTS_MissionSnapshot_0500 ====> " console.debug("=ACTS_MissionSnapshot_0500 ====> "
+("data.snapshot.getPixelBytesNumber()=" + data)) +("data.snapshot.getPixelBytesNumber()=" + data))
expect(data != 0).assertEqual(true); expect(data > 0).assertEqual(true);
console.debug('ACTS_MissionSnapshot_0500====<end') console.debug('ACTS_MissionSnapshot_0500====<end')
done(); done();
}) })
...@@ -310,8 +310,6 @@ describe('ActsMissionSnapshotTest', function () { ...@@ -310,8 +310,6 @@ describe('ActsMissionSnapshotTest', function () {
console.debug('ACTS_MissionSnapshot_0500====<end catch (err) get') console.debug('ACTS_MissionSnapshot_0500====<end catch (err) get')
done(); done();
} }
// console.debug('ACTS_MissionSnapshot_0500====<end')
// done();
}).catch(function (err) { }).catch(function (err) {
console.debug("=ACTS_MissionSnapshot_0500 catch err ====>" console.debug("=ACTS_MissionSnapshot_0500 catch err ====>"
+ ("json err 【") + JSON.stringify(err) + ("")); + ("json err 【") + JSON.stringify(err) + (""));
...@@ -401,7 +399,7 @@ describe('ActsMissionSnapshotTest', function () { ...@@ -401,7 +399,7 @@ describe('ActsMissionSnapshotTest', function () {
data.snapshot.getPixelBytesNumber().then(function (data){ data.snapshot.getPixelBytesNumber().then(function (data){
console.debug("=ACTS_MissionSnapshot_0600 ====> " console.debug("=ACTS_MissionSnapshot_0600 ====> "
+("data.snapshot.getPixelBytesNumber()=" + data)) +("data.snapshot.getPixelBytesNumber()=" + data))
expect(data != 0).assertEqual(true); expect(data > 0).assertEqual(true);
unsubscribe(".then() ", subscriber); unsubscribe(".then() ", subscriber);
console.debug('ACTS_MissionSnapshot_0600====<end') console.debug('ACTS_MissionSnapshot_0600====<end')
done(); done();
......
...@@ -13,14 +13,14 @@ ...@@ -13,14 +13,14 @@
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("amsMissionSnapshotTestSingleton") { ohos_js_hap_suite("ActsAmsMissionSnapshotTestSingleton") {
hap_profile = "./entry/src/main/config.json" hap_profile = "./entry/src/main/config.json"
deps = [ deps = [
":hjs_demo_js_assets", ":hjs_demo_js_assets",
":hjs_demo_resources", ":hjs_demo_resources",
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "amsMissionSnapshotTestSingleton" hap_name = "ActsAmsMissionSnapshotTestSingleton"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default" source_dir = "./entry/src/main/js/default"
......
...@@ -13,14 +13,14 @@ ...@@ -13,14 +13,14 @@
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("amsMissionSnapshotTestSingletonS") { ohos_js_hap_suite("ActsAmsMissionSnapshotTestSingletonS") {
hap_profile = "./entry/src/main/config.json" hap_profile = "./entry/src/main/config.json"
deps = [ deps = [
":hjs_demo_js_assets", ":hjs_demo_js_assets",
":hjs_demo_resources", ":hjs_demo_resources",
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "amsMissionSnapshotTestSingletonS" hap_name = "ActsAmsMissionSnapshotTestSingletonS"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default" source_dir = "./entry/src/main/js/default"
......
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultipageapp",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiPageApp.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultipageappconnectservice",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiPageAppConnectService.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultiapppageconnectservice",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiAppPageConnectService.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultipageapppermission",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiPageAppPermission.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultiapppagepermission",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiAppPagePermission.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultipageapps",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiPageAppS.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultiapppage",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiAppPage.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultipageappservice",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiAppPageService.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultiapppageontology",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiAppPageOntology.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultiapppageclone",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiAppClone.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultiapptermination",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiAppTermination.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.actsamsmultiapppageclonetermination",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"ActsAmsMultiAppPageCloneTermination.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_hap("MultiAppPageExecutor") { ohos_hap("ActsAmsMultiAppPageExecutor") {
hap_profile = "./src/main/config.json" hap_profile = "./src/main/config.json"
hap_name = "MultiAppPageExecutor" hap_name = "ActsAmsMultiAppPageExecutor"
subsystem_name = XTS_SUITENAME subsystem_name = XTS_SUITENAME
final_hap_path = final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap" "${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
......
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
} }
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_hap("MultiAppServiceExecutor") { ohos_hap("ActsAmsMultiAppServiceExecutor") {
hap_profile = "./src/main/config.json" hap_profile = "./src/main/config.json"
hap_name = "MultiAppServiceExecutor" hap_name = "ActsAmsMultiAppServiceExecutor"
subsystem_name = XTS_SUITENAME subsystem_name = XTS_SUITENAME
final_hap_path = final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap" "${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
......
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
} }
...@@ -12,9 +12,9 @@ ...@@ -12,9 +12,9 @@
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_hap("MultiAppServiceStarter") { ohos_hap("ActsAmsMultiAppServiceStarter") {
hap_profile = "./src/main/config.json" hap_profile = "./src/main/config.json"
hap_name = "MultiAppServiceStarter" hap_name = "ActsAmsMultiAppServiceStarter"
subsystem_name = XTS_SUITENAME subsystem_name = XTS_SUITENAME
final_hap_path = final_hap_path =
"${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap" "${SUITES_OUTPUT_ROOT}/${XTS_SUITENAME}/testcases/${hap_name}.hap"
......
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
} }
...@@ -9,18 +9,18 @@ ...@@ -9,18 +9,18 @@
# distributed under the License is distributed on an "AS IS" BASIS, # distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("MultiAppTester") { ohos_js_hap_suite("ActsAmsMultiAppTester") {
hap_profile = "./entry/src/main/config.json" hap_profile = "./entry/src/main/config.json"
deps = [ deps = [
":hjs_demo_js_assets", ":hjs_demo_js_assets",
":hjs_demo_resources", ":hjs_demo_resources",
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "MultiAppTester" hap_name = "ActsAmsMultiAppTester"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default" source_dir = "./entry/src/main/js/default"
......
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "300000",
"package": "com.example.amsmultiapptester",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"MultiAppTester.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
...@@ -13,14 +13,14 @@ ...@@ -13,14 +13,14 @@
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("amsMultiDataAbilityClone") { ohos_js_hap_suite("ActsAmsMultiDataAbilityClone") {
hap_profile = "./entry/src/main/config.json" hap_profile = "./entry/src/main/config.json"
deps = [ deps = [
":hjs_demo_js_assets", ":hjs_demo_js_assets",
":hjs_demo_resources", ":hjs_demo_resources",
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "amsMultiDataAbilityClone" hap_name = "ActsAmsMultiDataAbilityClone"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default" source_dir = "./entry/src/main/js/default"
......
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "180000",
"package": "com.amsst.amsmultidataabilityclone",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"amsMultiDataAbility.hap",
"./resource/appexecfwk/amsStDataAbility.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
...@@ -13,14 +13,14 @@ ...@@ -13,14 +13,14 @@
import("//test/xts/tools/build/suite.gni") import("//test/xts/tools/build/suite.gni")
ohos_js_hap_suite("amsMultiDataAbilitySelf") { ohos_js_hap_suite("ActsAmsMultiDataAbilitySelf") {
hap_profile = "./entry/src/main/config.json" hap_profile = "./entry/src/main/config.json"
deps = [ deps = [
":hjs_demo_js_assets", ":hjs_demo_js_assets",
":hjs_demo_resources", ":hjs_demo_resources",
] ]
certificate_profile = "./signature/openharmony_sx.p7b" certificate_profile = "./signature/openharmony_sx.p7b"
hap_name = "amsMultiDataAbilitySelf" hap_name = "ActsAmsMultiDataAbilitySelf"
} }
ohos_js_assets("hjs_demo_js_assets") { ohos_js_assets("hjs_demo_js_assets") {
source_dir = "./entry/src/main/js/default" source_dir = "./entry/src/main/js/default"
......
{ {
"description": "Configuration for hjunit demo Tests", "description": "Configuration for hjunit demo Tests"
"driver": {
"type": "JSUnitTest",
"test-timeout": "180000",
"package": "com.amsst.amsmultidataabilityself",
"shell-timeout": "60000"
},
"kits": [
{
"test-file-name": [
"amsMultiDataAbility.hap",
"./resource/appexecfwk/amsStDataAbility.hap"
],
"type": "AppInstallKit",
"cleanup-apps": true
}
]
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册