簡體   English   中英

量角器僅執行列表中的第一個測試套件

[英]Protractor only executes the 1st test suite from list

我們創建了此腳本來運行三個不同的測試套件,但它僅執行第一個測試套件('/TestBed_Scripts/TestBed_1.js),並且在第一個測試套件之后完全忽略任何測試文件。

exports.config = {
framework: 'jasmine',
seleniumAddress: 'http://localhost:4444/wd/hub',
suites: {

    TestScript: './TestBed_Scripts/TestBed_1.js',
    TestScript_2: 'FCPS/TestBed_Scripts/TestBed.js',
    TestScript_3: './TestBed_Scripts/TestBed_3.js',
},
helpers: ["../node_modules/jasmine-expect/index.js"],
stopSpecOnExpectationFailure: false,
random: false,
restartBrowserBetweenTests: true,
capabilities: {
    'browserName': 'chrome',
    },

};

我需要知道為什么第二和第三測試套件沒有執行? 我們該如何解決?

找到了答案。 第二個測試套件"TestScript_2: 'FCPS/TestBed_Scripts/TestBed.js',不正確,這導致了整個問題。我們刪除了帶有“。”的文件夾名稱“ FCPS”,現在可以正常使用了。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM