I am facing a Problem while running Spces in a loop for jasmine. In General, I have an Array with different Test Settings. (Main setting is the path to a datalist that jasmine has to upload to the tool in Test)
The code looks as follows:
let datalists = await new GlobalUtils().getAllDatalistsFrom(process.cwd() + '\\..\\..\\..\\..\\Data');
datalists.forEach(datalist => {
let test = standardsettings;
test.importeinstellungen_geschlecht = datalist.importsettings.importeinstellungen_geschlecht;
test.importeinstellungen_alter = datalist.importsettings.importeinstellungen_alter;
test.importeinstellungen_dienstjahre = datalist.importsettings_dienstjahre;
test.pfad = datalist.path;
console.log(test);
it("Testing with file: " + test.pfad, async() => {
console.log("Datalist path: " + test.pfad);
expect(await this.helper.runAnalysisWithData(test)).toBeTruthy();
});
Now, for debug purposes I have made a console.log() before the test runs and what I see in the console is everything works fine until the it() method. My console prints out every single Test the array contains, but somehow it does not continue..
I have also tried different loop variants like for(let i = 0; i < length; i++)
The following versions are installed: -Jasmine-core 3.5.0 -Protractor 6.0.0
Thanks a lot for help!
Aucun commentaire:
Enregistrer un commentaire