Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/amazon-web-services/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Selenium Ionic framework-使用带Ios仿真器的量角器进行e2e测试_Selenium_Ionic Framework_Protractor_Appium_Hybrid Mobile App - Fatal编程技术网

Selenium Ionic framework-使用带Ios仿真器的量角器进行e2e测试

Selenium Ionic framework-使用带Ios仿真器的量角器进行e2e测试,selenium,ionic-framework,protractor,appium,hybrid-mobile-app,Selenium,Ionic Framework,Protractor,Appium,Hybrid Mobile App,我有一个混合应用程序构建与离子框架,并想在模拟器上测试使用量角器。如何设置使用量角器在模拟器上运行测试 以下是我迄今为止所做的尝试: 1) 我的所有测试都在浏览器中运行良好 2) 已安装的应用程序() 3) 修改了我的dragrator.config.js文件: exports.config = { seleniumAddress: 'http://localhost:4723/wd/hub', specs: [ 'e2e/*_spec.coffee' ],

我有一个混合应用程序构建与离子框架,并想在模拟器上测试使用量角器。如何设置使用量角器在模拟器上运行测试

以下是我迄今为止所做的尝试:

1) 我的所有测试都在浏览器中运行良好

2) 已安装的应用程序()

3) 修改了我的dragrator.config.js文件:

exports.config = {
  seleniumAddress: 'http://localhost:4723/wd/hub',

   specs: [
     'e2e/*_spec.coffee'
    ],

   capabilities: {
     browserName: '',
     'appium-version': '1.3',
      platformName: 'iOS',
      platform: 'Mac',
      platformVersion: '8.2',
      deviceName: 'iPhone 5s',
     app: 'absolute_path/platforms/ios/build/emulator/taco.app'
   },

   baseUrl: 'http://localhost:8100',
 };
这会启动模拟器,但不会启动正在运行的测试。这是一个样本规范

describe 'Taco', ->
  describe 'Login', ->
    beforeEach ->
      browser.get('http://localhost:8100')
      browser.executeScript('window.localStorage.clear();')
      browser.waitForAngular()

    it 'should login with valid credentials', ->
      expect(element(By.css('.home-template')).isPresent()).toBe(true)

      element(By.linkText('I have an account')).click()
      element(By.model('credentials.email')).sendKeys('taco1@taco.com')

你也在使用人行横道吗?可能是重复的