-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not fully e2e tested #51
Comments
@yakalinkin can You attach full protractor.conf.js and spec file that reproduces this issue? |
/* protractor.conf.ts */
import { Config } from 'protractor';
const JasmineConsoleReporter = require('jasmine-console-reporter');
const HtmlReporter = require('protractor-beautiful-reporter');
export let config: Config = {
SELENIUM_PROMISE_MANAGER: false,
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
includeStackTrace: true,
defaultTimeoutInterval: 900000,
},
seleniumAddress: 'http://localhost:4444/wd/hub',
specs: ['./googleExample.spec.js'],
multiCapabilities: [
{
browserName: 'chrome',
count: 5
},
{
browserName: 'firefox',
count: 5
},
],
getPageTimeout: 600000,
allScriptsTimeout: 600000,
onPrepare() {
setupReporter();
},
};
export function setupReporter() {
jasmine.getEnv().clearReporters();
jasmine.getEnv().addReporter(new JasmineConsoleReporter({
colors: true,
cleanStack: true,
verbosity: true,
listStyle: 'flat', // "flat"|"indent"
activity: false,
}));
jasmine.getEnv().addReporter(new HtmlReporter({
baseDirectory: 'dist/report',
screenshotsSubfolder: 'images',
jsonsSubfolder: 'jsons',
gatherBrowserLogs: false,
preserveDirectory: false,
}).getJasmine2Reporter());
} /* googleExample.spec.ts */
import { $, browser, protractor } from 'protractor';
browser.waitForAngularEnabled(false);
describe('Google', () => {
beforeAll(async () => {
await browser.get('http://google.com/');
});
it('should search by `protractor`', async () => {
await $('.gsfi[name="q"]').sendKeys('protractor', protractor.Key.RETURN);
const value = await $('.gsfi[name="q"]').getAttribute('value');
expect(value).toEqual('protractor');
});
}); Pass/Fail counts reported as 7 - should be 10 Errors
|
@yakalinkin I've tried to reproduce Your case on OSx - sadly it works properly. I don't have windows machine to test it on Windows system :( Can You check if this issue occurs if You set preserveDirectory: true ? |
@Evilweed The reporter also breaks down on the OS X. |
@yakalinkin I tried Your config and test case again on OSx (multiple times) and it keeps showing me proper 10/10 test cases reported. Does this issue occur constantly or just sometimes? |
@Evilweed Now, works fine. I don't know what's happened. I think you can close this issue now :) |
@yakalinkin closing as per comment. Thanks :) |
Pass/Fail counts reported as
24
- should be30
Example code
The runner process is reported as "24" and not "30" as it should. How to fix it?
I get an error
I/runnerCli - ENOENT: no such file or directory, stat 'C:\**\dist\report\assets\bootstrap.css' E/launcher - Runner process exited unexpectedly with error code: 1
System
The text was updated successfully, but these errors were encountered: