def tearDown(self): # Verify application state at the end of the test is correct if File.exists(self.app_name): data = TnsAsserts.get_package_json(self.app_name) assert "tns-android" in data["nativescript"], "'tns-android' not found under `nativescript` in package.json" assert "tns-android" not in data["dependencies"], "'tns-android' found under `dependencies` in package.json" BaseClass.tearDown(self) Folder.cleanup(self.platforms_android + '/build/outputs') Folder.cleanup("with space")
def tearDown(self): # Verify application state at the end of the test is correct if File.exists(self.app_name): data = TnsAsserts.get_package_json(self.app_name) assert "tns-android" in data[ "nativescript"], "'tns-android' not found under `nativescript` in package.json" assert "tns-android" not in data[ "dependencies"], "'tns-android' found under `dependencies` in package.json" BaseClass.tearDown(self) Folder.cleanup(self.platforms_android + '/build/outputs') Folder.cleanup("with space")
def tearDown(self): Tns.kill() BaseClass.tearDown(self)
def tearDown(self): Tns.kill() BaseClass.tearDown(self)
def tearDown(self): BaseClass.tearDown(self) Process.kill('Safari') Process.kill('NativeScript Inspector') Tns.kill()
def tearDown(self): Tns.kill() if CURRENT_OS == OSType.WINDOWS: Emulator.stop() BaseClass.tearDown(self) Folder.cleanup('TestApp2')
def tearDown(self): BaseClass.tearDown(self) Process.kill('Safari') Process.kill('NativeScript Inspector') Tns.kill()
def tearDown(self): BaseClass.tearDown(self)
def tearDown(self): Tns.kill() if CURRENT_OS == OSType.WINDOWS: Emulator.stop() BaseClass.tearDown(self) Folder.cleanup('TestApp2')
def tearDown(self): BaseClass.tearDown(self) assert not Simulator.is_running( )[0], "Simulator started after " + self._testMethodName
def tearDown(self): BaseClass.tearDown(self)