Node.js测试脚本无法与Appium for iOS一起执行

时间:2019-06-19 02:26:34

标签: node.js appium appium-ios appium-desktop

我已经成功集成了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命令时出现错误。请参阅屏幕截图

enter image description here

感谢您的帮助和建议!

谢谢

0 个答案:

没有答案