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

In version 3.0.1, charts not diplayed for values greater that 999 #749

Closed
mauropota opened this Issue Jan 20, 2017 · 1 comment

Comments

Projects
None yet
2 participants
@mauropota

mauropota commented Jan 20, 2017

Hi,
when values to plot are greater that 999 (for example when more that 999 tests are listed), charts are not generated (the one that refers to tests and the one that refers to test steps) and the following errors are thrown:

  1. Uncaught SyntaxError: Unexpected token ,
  2. Uncaught ReferenceError: statusGroup is not defined
    at drawParentChart (extent.js:456)
    at extent.js:467

The unexpected token , refers to the following line of code in the html file:
infoChild: 1,628,
This line is part of the following set of instructions:
var statusGroup = {

			passParent: 51,
			failParent: 0,
			fatalParent: 0,
			errorParent: 20,
			warningParent: 0,
			skipParent: 0,
			exceptionsParent: 20,
			
			passChild: 0,
			failChild: 0,
			fatalChild: 0,
			errorChild: 20,
			warningChild: 0,
			skipChild: 0,
		        infoChild: 1,278,
			exceptionsChild: 20,
			
			passGrandChild: 0,
			failGrandChild: 0,
			fatalGrandChild: 0,
			errorGrandChild: 0,
			warningGrandChild: 0,
			skipGrandChild: 0,
			infoGrandChild: 0,
			exceptionsGrandChild: 0,

};

</script>

The Uncaught ReferenceError: statusGroup refers to the file extent.js

@mauropota mauropota changed the title from Process to generate charts crashes for values to plot greater that 1000 to charts not diplayed for values greater that 999 Jan 20, 2017

@mauropota mauropota changed the title from charts not diplayed for values greater that 999 to In version 3.0.1, charts not diplayed for values greater that 999 Jan 20, 2017

@anshooarora anshooarora added the bug label Jan 23, 2017

@anshooarora

This comment has been minimized.

Show comment
Hide comment
@anshooarora

anshooarora Jan 23, 2017

Owner

The template engine (freemarker in this case) converts this number when its written to the file. Marked this as a bug.

Owner

anshooarora commented Jan 23, 2017

The template engine (freemarker in this case) converts this number when its written to the file. Marked this as a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment