def setUpClass(cls): TnsTest.setUpClass() Docker.start() Tns.create(app_name=cls.app_name, template=Template.HELLO_WORLD_JS.local_package, update=True) Tns.create(cls.app_name_with_space, template=Template.HELLO_WORLD_JS.local_package, update=True) Tns.platform_add_android(cls.app_name, framework_path=Settings.Android.FRAMEWORK_PATH) Tns.platform_add_android(app_name='"' + cls.app_name_with_space + '"', framework_path=Settings.Android.FRAMEWORK_PATH, verify=False) if Settings.HOST_OS is OSType.OSX: Tns.platform_add_ios(cls.app_name, framework_path=Settings.IOS.FRAMEWORK_PATH) Folder.copy(cls.app_path, cls.app_temp_path)
def setUpClass(cls): TnsRunAndroidTest.setUpClass() Docker.start() # Create app Tns.create(app_name=cls.app_name, template='[email protected]') # Copy TestApp to data folder. Folder.copy(source=cls.source_project_dir, target=cls.target_project_dir)
def setUpClass(cls): TnsTest.setUpClass() Docker.start() # Create JS app and copy to temp data folder Tns.create(app_name=cls.js_app, template=Template.HELLO_WORLD_JS.local_package, update=True) Tns.platform_add_android( app_name=cls.js_app, framework_path=Settings.Android.FRAMEWORK_PATH) if Settings.HOST_OS is OSType.OSX: Tns.platform_add_ios(app_name=cls.js_app, framework_path=Settings.IOS.FRAMEWORK_PATH) # Create NG app and copy to temp data folder Tns.create(app_name=cls.ng_app, template=Template.HELLO_WORLD_NG.local_package, update=True) Tns.platform_add_android( app_name=cls.ng_app, framework_path=Settings.Android.FRAMEWORK_PATH) if Settings.HOST_OS is OSType.OSX: Tns.platform_add_ios(app_name=cls.ng_app, framework_path=Settings.IOS.FRAMEWORK_PATH) # Build apps Tns.build_android(cls.js_app, release=True, bundle=True, aot=True, uglify=True, snapshot=True) Tns.build_android(cls.ng_app, release=True, bundle=True, aot=True, uglify=True, snapshot=True) if Settings.HOST_OS == OSType.OSX: Tns.build_ios(cls.js_app, release=True, bundle=True, aot=True, uglify=True, for_device=True) Tns.build_ios(cls.ng_app, release=True, bundle=True, aot=True, uglify=True, for_device=True)
def setUpClass(cls): TnsRunAndroidTest.setUpClass() Docker.start() # Create app Tns.create(app_name=cls.app_name, template=Template.HELLO_WORLD_JS.local_package, update=True) Tns.platform_add_android(app_name=cls.app_name, framework_path=Android.FRAMEWORK_PATH) # Copy TestApp to data folder. Folder.copy(source=cls.app_path, target=cls.target_project_dir) # Download bundletool url = 'https://github.com/google/bundletool/releases/download/0.10.0/bundletool-all-0.10.0.jar' File.download('bundletool.jar', url, TEST_SUT_HOME)
def setUpClass(cls): TnsRunTest.setUpClass() Docker.start() # Create app Tns.create(app_name=cls.app_name, template=Template.HELLO_WORLD_TS.local_package, update=True) src = os.path.join(Settings.TEST_RUN_HOME, 'assets', 'logs', 'hello-world-ts', 'app.ts') target = os.path.join(Settings.TEST_RUN_HOME, cls.app_name, 'app') File.copy(source=src, target=target) Tns.platform_add_android(app_name=cls.app_name, framework_path=Settings.Android.FRAMEWORK_PATH) if Settings.HOST_OS is OSType.OSX: Tns.platform_add_ios(app_name=cls.app_name, framework_path=Settings.IOS.FRAMEWORK_PATH) # Copy TestApp to data folder. Folder.copy(source=cls.source_project_dir, target=cls.target_project_dir)
def setUpClass(cls): TnsRunAndroidTest.setUpClass() Docker.start() # Create app result = Tns.create(app_name=cls.app_name, template='[email protected]', verify=False) TnsAssert.created(app_name=cls.app_name, output=result.output, path=Settings.TEST_RUN_HOME, theme=False) # Copy TestApp to data folder. Folder.copy(source=cls.source_project_dir, target=cls.target_project_dir)
def setUpClass(cls): TnsRunTest.setUpClass() Docker.start() # Create app Tns.create(app_name=cls.app_name, template=Template.MASTER_DETAIL_NG.local_package, update=True) Tns.platform_add_android( app_name=cls.app_name, framework_path=Settings.Android.FRAMEWORK_PATH) if Settings.HOST_OS is OSType.OSX: Tns.platform_add_ios(app_name=cls.app_name, framework_path=Settings.IOS.FRAMEWORK_PATH) # Copy TestApp to data folder. Folder.copy(source=cls.source_project_dir, target=cls.target_project_dir)
def tearDownClass(cls): TnsRunTest.tearDownClass() Docker.stop()
def tearDownClass(cls): TnsTest.tearDownClass() Docker.stop() Folder.clean(TnsPaths.get_app_path(app_name=cls.app_temp_path)) Folder.clean(TnsPaths.get_app_path(cls.app_name_with_space))
def tearDownClass(cls): Docker.stop()
def setUpClass(cls): TnsRunTest.setUpClass() Docker.start()