0
각도기 (1.6.1)와 재스민 (2.1.1)을 업데이트 할 때까지 여러 각도 측정기 테스트가 있습니다. 이제 테스트를 실행하려고하면 Chrome 브라우저가 열리지 만 baseURL로 이동하지 않습니다. 다음은 민감한 정보가 xxx로 바뀐 구성 파일입니다.각도기 테스트에서베이스 URL을 가져 오지 못했습니다.
exports.config = {
seleniumServerJar: './node_modules/selenium-server/lib/runner/selenium-server-standalone-2.44.0.jar',
chromeDriver: './node_modules/chromedriver/lib/chromedriver/chromedriver',
shardTestFiles: false,
specs: [
'test/e2e/policy-add.spec.js'
],
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 600000,
isVerbose: true,
includeStackTrace: true
},
capabilities: {
browserName: 'chrome',
'chromeOptions': {
args: ['--test-type']
},
},
params: {
login: {
user: '[email protected]',
password: 'xxx'
},
webform: 'https://xxx'
},
baseUrl: 'https://xxx.xxx.com',
rootElement: 'body',
framework: 'jasmine',
onPrepare: function() {
var loginHelpers = require('./test/e2e/helpers/login-helpers.js');
loginHelpers.login();
}
}};
this.navigate = function(url){
browser.get(url);
browser.ignoreSynchronization = true;
};
내가 가진 그 함수를 호출하고 있습니다 :
이 내가 browser.get를 사용하고 어떻게
globalHelpers.navHelpers.navigate('#/');
'browser.get()'을 어떻게 호출하는지 보여 줄 수 있습니까? –
테스트에서'browser.get ('# /')'를 직접 호출하여 어떤 일이 발생하는지 볼 수 있습니까? 탐색에 실패합니까 아니면 기본 URL없이 '# /'로 이동하려고합니까? (btw, 설정 파일에서 jasmine을 특별히 지정 했으므로 jasmine2를 사용하지 않습니다.) – hankduan
시도한 browser.get ('# /') 및 전체 http 주소가있는 browser.get()을 시도했습니다. 둘 다 똑같은 효과가있었습니다. 브라우저는로드되지만 탐색하지 않으며 "데이터;" url 필드에 있습니다. – KJack