Open tediroca opened 8 years ago
Hi Can you confirm that you have run your test by running the server and the test in a second console As describer here : https://github.com/SunGard-Labs/sg-protractor-tools/tree/master/example
Thanks
Hi,
I'm running the tests by directly invokating protractor and using the config below:
exports.config = {
allScriptsTimeout: 1000000,
directConnect: true,
specs: ['*.spec.js'],
capabilities: {
'browserName': 'chrome',
'chromeOptions': {'args': ['lang=en-GB', 'enable-precise-memory-info', 'js-flags=--expose-gc', 'no-sandbox']}
},
baseUrl: 'https://mytestenvironment.com',
framework: 'jasmine2',
restartBrowserBetweenTests: false,
onPrepare: function () {
browser.manage().window().setSize(1600, 1000);
var jasmineReporters = require('jasmine-reporters');
jasmine.getEnv().addReporter(new jasmineReporters.JUnitXmlReporter({
consolidateAll: true,
filePrefix: 'results',
savePath: 'reports/xml'
}));
var HtmlScreenshotReporter = require('protractor-jasmine2-screenshot-reporter');
jasmine.getEnv().addReporter(new HtmlScreenshotReporter({
dest: 'reports/html',
filename: 'results.html'
}));
var SpecReporter = require('jasmine-spec-reporter');
jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'all'}));
},
jasmineNodeOpts: {
showColors: true,
defaultTimeoutInterval: 1050000,
isVerbose: true,
includeStackTrace: true,
print: function () {}
}
};
In my case the application is already deployed and running in an external server and I'm invoking each of the specs individually in order to have a more granular control of the execution results.
Thanks.
I got exactly the same problem, running a simple test, with the server external also .. Do that library still supported ??
So you need to declare your it in the same "test" way: const test = it('Memory Test', () => { var memoryMeasure = sgpt.memory.startMemoryMeasurement(test); }
I got this too, and I am using names for the describe
and it
blocks.
Issue got resolved?? If its resolved please pine me the solution
I've created the folling test:
If I try to execute this single spec (named test.spec.js) this produces the following error:
I'm using Protractor 3.0.0 and Jasmine 2.5.1