小编ksb*_*sbg的帖子

有没有办法通过量角器cli传递多个浏览器

只是想知道是否可以指定量角器的cli args

--multiCapabilities.0.browserName chrome --multiCapabilities.1.browserName firefox

这样它就会覆盖量角器conf文件中定义的multiCapabilities.

protractor

7
推荐指数
2
解决办法
2868
查看次数

protractor-html-screenshot-reporter没有显示在报告文件中执行的所有测试

我试图运行firsttest.js:

// firsttest.js
describe('angularjs homepage', function() {
  var firstNumber = element(by.model('first'));
  var secondNumber = element(by.model('second'));
  var goButton = element(by.id('gobutton'));
  var latestResult = element(by.binding('latest'));

  beforeEach(function() {
    browser.get('http://juliemr.github.io/protractor-demo/');
  });

  it('should have a title', function() {
    expect(browser.getTitle()).toEqual('Super Calculator');
  });

  it('should add one and two', function() {

    firstNumber.sendKeys(1);
    secondNumber.sendKeys(2);

    goButton.click();

    expect(latestResult.getText()).toEqual('3');
  });

  it('should add four and six', function() {
    // Fill this in.
    expect(latestResult.getText()).toEqual('10');
  });

  it('test1', function() {
    // Fill this in.
    expect(true).toEqual(true);
  });

  it('test2', function() {
    // Fill this in.
    expect(true).toEqual(true);
  });

  it('test3', …
Run Code Online (Sandbox Code Playgroud)

javascript testing end-to-end angularjs protractor

3
推荐指数
1
解决办法
1401
查看次数

标签 统计

protractor ×2

angularjs ×1

end-to-end ×1

javascript ×1

testing ×1