Get help with testing, discuss unit testing strategies etc.


Post by cwtuan »

It seems that there are only two report format in webdriver or phantomjs such as Junit and JSON.
Could I have HTML output?
I am considering implementing a converter to convert JSON to HTML.
But I have a question about the format.
I have 3 test cases in 2 groups.
Harness.start({
	group : 'project',
	items : [ {
		url : 'tests/signin/signin_up_owner.t.js'
	}, {
		url : 'tests/project/project_CRUD.t.js'
	}
	]
}, {
	group : 'problem',
	items : [ {
		url : 'tests/problem/problem_CRUD.t.js'
	} ]
}
);
But the result doesn't show any information about "group".
{
   "testSuiteName":"",
   "startDate":"2014-04-23T13:50:29.174Z",
   "endDate":"2014-04-23T13:51:07.736Z",
   "passed":false,
   "testCases":[
      {
         "type":"Siesta.Result.SubTest",
         "name":null,
         "startDate":1398261030697,
         "endDate":1398261044180,
         "passed":false,
         "url":"tests/signin/signin_up_owner.t.js",
         "assertions":[    
            {
               "type":"Siesta.Result.Assertion",
               "passed":true,
               "description":"Waited 5432 ms",
               "isWaitFor":true
            }
         ]
      },
      {
         "type":"Siesta.Result.SubTest",
         "name":null,
         "startDate":1398261059699,
         "endDate":1398261067728,
         "passed":true,
         "url":"tests/project/project_CRUD.t.js",
         "assertions":[
            {
               "type":"Siesta.Result.Assertion",
               "passed":true,
               "description":"test for is"
            }
         ]
      },
      {
         "type":"Siesta.Result.SubTest",
         "name":null,
         "startDate":1398261059699,
         "endDate":1398261067728,
         "passed":true,
         "url":"tests/problem/problem_CRUD.t.js",
         "assertions":[
            {
               "type":"Siesta.Result.Assertion",
               "passed":true,
               "description":"test ok"
            }
         ]
      }
   ]
}
Could you add some "group" information in the result?
Thanks!

Post by nickolay »

There's no HTML report because you can use plain text output from the launcher to see the results.

As about having the group in the JSON report - that makes sense, we'll do that!

Post by nickolay »

Here's a ticket to track the progress.

Post by cwtuan »

Thanks for reply.
Hope having the group in the JSON report soon.
If this feature is released, please let me know.
I'd like to implement a report like https://docs.sencha.com/extjs/4.1.1/extj ... -grid.html

Post by nickolay »

Implemented in the sources (as "groups" property in the JSON report), please verify how it works in the next nightly build.

Post by cwtuan »

Cool! how could I get nightly build?

Post by nickolay »

You can download it from the customer zone: https://www.bryntum.com/customerzone/

Post Reply