私は、渡された実行のための期待される出力が表示されません、アサーションは記載されていません。私はこの行に「1つの仕様、0の失敗」という主張があることを期待しています。angularjs分度器3.3.0仕様を報告していません
出力:
[18:28:06] I/hosted - Using the selenium server at http://localhost:4444/wd/hub
[18:28:06] I/launcher - Running 1 instances of WebDriver
Started
.
1 spec, 0 failures
Finished in 0.854 seconds
[18:28:08] I/launcher - 0 instance(s) of WebDriver still running
[18:28:08] I/launcher - chrome #01 passed
分度器のウェブサイト上で見られるように、ラン出力の期待終わり、http://www.protractortest.org/#/ "テストの実行"):
1 test, 3 assertions, 0 failures
スペック:
describe('Viewing index.html', function() {
'use strict';
beforeEach(function(){
browser.get('/');
});
it('should have pages in left nav', function() {
expect(element.all(by.repeater('page in adminClient.selectedSite.pages')).count()).toBeGreaterThan(0);
});
});
by.repeater locatorが動作していることを確認しました:
element.all(by.repeater('page in adminClient.selectedSite.pages')).count()
.then(function(count){
console.log('page count: ' + count);
});
[UPDATE]これはバージョンの問題であり、onPrepareフックにジャスミンレポーターを挿入することが推奨されていますが、それは私にとってより多くのランタイムエラーを作りました。 stack overflow question
私の分度器の設定:
exports.config = {
allScriptsTimeout: 11000,
chromeOnly: true,
chromeDriver: 'node_modules/protractor/bin/selenium/chromedriver_2.21',
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['tests/e2e/*-spec.js'],
capabilities: {
'browserName': 'chrome'
},
baseUrl: 'http://localhost:8889/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 30000
}
};
詳細を教えてください'ジャスミン - 記者たち 'を試している間に何の誤りがありましたか? – alecxe
@WillLopez私の投稿回答をご覧ください。これで問題は解決しましたか? –