Comments (7)
@yakalinkin can You attach full protractor.conf.js and spec file that reproduces this issue?
from protractor-beautiful-reporter.
/* 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
[firefox #61] I/runnerCli - EBUSY: resource busy or locked, rmdir 'C:\**\dist\report\images'
[firefox #61] E/launcher - Runner process exited unexpectedly with error code: 1
[firefox #71] I/runnerCli - ENOTEMPTY: directory not empty, rmdir 'C:\**\dist\report\jsons'
[firefox #71] E/launcher - Runner process exited unexpectedly with error code: 1
[firefox #51] ENOENT: no such file or directory, open 'C:\**\dist\report\assets\angular.min.js'
[firefox #51] at Object.fs.openSync (fs.js:663:18)
[firefox #51] at copyFileSync (C:\**\node_modules\protractor-beautiful-reporter\index.js:10731:18)
[firefox #51] at copySync (C:\**\node_modules\protractor-beautiful-reporter\index.js:10799:5)
[firefox #51] at contents.forEach.content (C:\**\node_modules\protractor-beautiful-reporter\index.js:10810:7)
[firefox #51] at Array.forEach (<anonymous>)
[firefox #51] at Object.copySync (C:\**\node_modules\protractor-beautiful-reporter\index.js:10807:14)
[firefox #51] at addHTMLReport (C:\**\node_modules\protractor-beautiful-reporter\index.js:5119:17)
[firefox #51] at Object.addMetaData (C:\**\node_modules\protractor-beautiful-reporter\index.js:5193:9)
[firefox #51] at Jasmine2Reporter._callee8$ (C:\**\node_modules\protractor-beautiful-reporter\index.js:4962:38)
[firefox #51] at tryCatch (C:\**\node_modules\protractor-beautiful-reporter\index.js:5377:40)
[firefox #51] ENOENT: no such file or directory, rmdir 'C:\**\dist\report\.lock'
[firefox #51] at Object.fs.rmdirSync (fs.js:866:18)
[firefox #51] at Object.addMetaData (C:\**\node_modules\protractor-beautiful-reporter\index.js:5195:12)
[firefox #51] at Jasmine2Reporter._callee8$ (C:\**\node_modules\protractor-beautiful-reporter\index.js:4962:38)
[firefox #51] at tryCatch (C:\**\node_modules\protractor-beautiful-reporter\index.js:5377:40)
[firefox #51] at Generator.invoke [as _invoke] (C:\**\node_modules\protractor-beautiful-reporter\index.js:5651:22)
[firefox #51] at Generator.prototype.(anonymous function) [as next] (C:\**\node_modules\protractor-beautiful-reporter\index.js:5410:21)
[firefox #51] at step (C:\**\node_modules\protractor-beautiful-reporter\index.js:4481:191)
[firefox #51] at C:\**\node_modules\protractor-beautiful-reporter\index.js:4481:361
[firefox #51] at <anonymous>
[firefox #51] at process._tickCallback (internal/process/next_tick.js:160:7)
from protractor-beautiful-reporter.
@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 ?
from protractor-beautiful-reporter.
@Evilweed preserveDirectory: true
doesn't work well always.
They lose results if WebDriverError: java.net.BindException: Address already in use: connect
error.
The reporter also breaks down on the OS X.
from protractor-beautiful-reporter.
@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?
from protractor-beautiful-reporter.
@Evilweed Now, works fine. I don't know what's happened.
I think you can close this issue now :)
from protractor-beautiful-reporter.
@yakalinkin closing as per comment. Thanks :)
from protractor-beautiful-reporter.
Related Issues (20)
- Blank screenshots when restartBrowserBetweenTests = true HOT 1
- Report failed to consolidate all specs results when run in parallel mode HOT 9
- Are browser logs complete? HOT 1
- [Feature Request] Get screenshot of first expect failure in report HOT 1
- Can screenshot whole page be added to report HOT 1
- Is it possible to have more than one screenshot for one test HOT 1
- HTML Reporter not working HOT 7
- How to re-run failed test cases in protractor using protractor-beautiful-reporter ???
- Css issue with protractor beautiful reporter HOT 2
- Report generation stops after running a certain number of test cases. HOT 2
- Total duration is incorrect when running multiCapabilities or sharded run HOT 1
- Unable to open report in Jenkins HOT 1
- Unexpected Alerts, script timeouts, invalid session id failures not reported HOT 2
- protractor-beautiful-reporter not working
- does not clean the baseDirectory with each test run HOT 1
- Is this still maintained? HOT 4
- FEATURE REQUEST: Highlight image dialog's in red when that test has failed
- Resource was busy and locked if beautiful report is opened in any browser HOT 1
- protractor-beautiful-reporter retry with flake HOT 1
- How can we add new column "current time" in the HTML report HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from protractor-beautiful-reporter.