Selenium Ionic framework-使用带Ios仿真器的量角器进行e2e测试
我有一个混合应用程序构建与离子框架,并想在模拟器上测试使用量角器。如何设置使用量角器在模拟器上运行测试 以下是我迄今为止所做的尝试: 1) 我的所有测试都在浏览器中运行良好 2) 已安装的应用程序() 3) 修改了我的dragrator.config.js文件: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' ],
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')
你也在使用人行横道吗?可能是重复的