1

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命令时出现错误。参考截图

在此处输入图像描述

感谢您的帮助和建议!

谢谢

4

0 回答 0