我已经成功集成了Appium
桌面应用程序,并且可以按照以下教程正常工作:
http://latestsoftwaretestingnews.com/mobiletesting/appium-ios-testing-with-node-js-step-by-step-guide/
main.js
describe ('Simple cases', function (){
before (function (){
this.timeout(50000);
return client.init();
});
describe('test-app-addition', function (){
it('add-3-3', function(){
return client.element('~IntegerA')
.setValue ('3')
.elementByAccessibilityId ('~IntegerB')
.setValue('3')
.click('~ComputeSumButton')
.element('~Answer')
.getText()
.then(function (text){
expect(text).to.equal('6');
});
});
});
after(function(){
return client.end();
});
});
但是执行$npm run native
命令时出现错误。请参阅屏幕截图
感谢您的帮助和建议!
谢谢