def setUpClass(cls): BaseClass.setUpClass(cls.__name__) Emulator.stop() Emulator.ensure_available() Tns.create_app(cls.app_name, update_modules=True) Tns.install_npm(package=WEBPACK_PACKAGE, option='--save-dev', folder=cls.app_name) Tns.platform_add_android(attributes={"--path": cls.app_name, "--frameworkPath": ANDROID_PACKAGE})
def setUpClass(cls): BaseClass.setUpClass(cls.__name__) Emulator.stop() Device.uninstall_app(app_prefix="org.nativescript.", platform=Platform.ANDROID) Emulator.ensure_available() Folder.cleanup(cls.app_name) # Create default NG app (to get right dependencies from package.json) Tns.create_app_ng(cls.app_name) Tns.platform_add_android(attributes={'--path': cls.app_name, '--frameworkPath': ANDROID_PACKAGE})
def setUp(self): BaseClass.setUp(self) Folder.cleanup(self.source_app) if CURRENT_OS != OSType.WINDOWS: Folder.copy(self.temp_app, self.source_app) else: Tns.create_app(self.app_name, attributes={'--template': os.path.join('data', 'apps', 'livesync-hello-world.tgz')}, update_modules=True) Tns.platform_add_android(attributes={'--path': self.app_name, '--frameworkPath': ANDROID_PACKAGE}) Emulator.ensure_available()
def test_310_tns_run_android_emulator_should_run_only_on_emulator(self): """ `tns run android --emulator` should start emulator even if physical device is connected """ Emulator.stop() Emulator.ensure_available() output = Tns.run_android(attributes={'--path': self.app_name, '--emulator': '', '--justlaunch': ''}, assert_success=False) assert 'Starting Android emulator with image' not in output assert EMULATOR_ID in output for device_id in self.DEVICES: assert device_id not in output, 'Application is deployed on {0} device.'.format(device_id)
def setUpClass(cls): BaseClass.setUpClass(cls.__name__) Emulator.stop() Emulator.ensure_available() Tns.create_app(BaseClass.app_name) Tns.platform_add_android(attributes={"--path": BaseClass.app_name, "--frameworkPath": ANDROID_PACKAGE}) Tns.update_webpack(BaseClass.app_name) Folder.copy(os.path.join(TEST_RUN_HOME, BaseClass.app_name), os.path.join(TEST_RUN_HOME, "data", "TestApp")) #Download bundletool url = 'https://github.com/google/bundletool/releases/download/0.8.0/bundletool-all-0.8.0.jar' urllib.urlretrieve(url, os.path.join(SUT_FOLDER, 'bundletool.jar'))
def setUpClass(cls): BaseClass.setUpClass(cls.__name__) Emulator.stop() Emulator.ensure_available() Tns.create_app(cls.app_name, update_modules=True) Tns.install_npm(package=WEBPACK_PACKAGE, option='--save-dev', folder=cls.app_name) Tns.platform_add_android(attributes={ "--path": cls.app_name, "--frameworkPath": ANDROID_PACKAGE })
def setUpClass(cls): BaseClass.setUpClass(cls.__name__) Tns.kill() Emulator.stop() Emulator.ensure_available() Device.uninstall_app(app_prefix="org.nativescript.", platform=Platform.ANDROID) if CURRENT_OS != OSType.WINDOWS: Tns.create_app(cls.app_name, attributes={'--template': os.path.join('data', 'apps', 'livesync-hello-world.tgz')}, update_modules=True) Tns.platform_add_android(attributes={'--path': cls.app_name, '--frameworkPath': ANDROID_PACKAGE}) Folder.cleanup(cls.temp_app) Folder.copy(cls.source_app, cls.temp_app)
def setUpClass(cls): BaseClass.setUpClass(cls.__name__) Emulator.stop() Emulator.ensure_available() Tns.create_app(BaseClass.app_name) Tns.platform_add_android(attributes={ "--path": BaseClass.app_name, "--frameworkPath": ANDROID_PACKAGE }) Tns.update_webpack(BaseClass.app_name) Folder.copy(os.path.join(TEST_RUN_HOME, BaseClass.app_name), os.path.join(TEST_RUN_HOME, "data", "TestApp")) #Download bundletool url = 'https://github.com/google/bundletool/releases/download/0.8.0/bundletool-all-0.8.0.jar' urllib.urlretrieve(url, os.path.join(SUT_FOLDER, 'bundletool.jar'))
def setUp(self): BaseClass.setUp(self) Folder.cleanup(self.source_app) if CURRENT_OS != OSType.WINDOWS: Folder.copy(self.temp_app, self.source_app) else: Tns.create_app(self.app_name, attributes={ '--template': os.path.join('data', 'apps', 'livesync-hello-world.tgz') }, update_modules=True) Tns.platform_add_android(attributes={ '--path': self.app_name, '--frameworkPath': ANDROID_PACKAGE }) Emulator.ensure_available()
def setUpClass(cls): BaseClass.setUpClass(cls.__name__) Tns.kill() Emulator.stop() Emulator.ensure_available() Device.uninstall_app(app_prefix="org.nativescript.", platform=Platform.ANDROID) if CURRENT_OS != OSType.WINDOWS: Tns.create_app(cls.app_name, attributes={ '--template': os.path.join('data', 'apps', 'livesync-hello-world.tgz') }, update_modules=True) Tns.platform_add_android(attributes={ '--path': cls.app_name, '--frameworkPath': ANDROID_PACKAGE }) Folder.cleanup(cls.temp_app) Folder.copy(cls.source_app, cls.temp_app)