Robottelo: Improve robottelo UI logs

Created on 9 Sep 2017  路  5Comments  路  Source: SatelliteQE/robottelo

This issue is to improve the output of the robottelo tests logs for automated user interface tests.

UI in progress

Most helpful comment

Hmmm I think that showing what is happening in terms of creation of, searching for, editing or deletion of content should be present, without actually showing what elements are being looked at (which should require a more verbose mode). For example:

2017-09-09 23:02:02 - robottelo.ui - INFO - >>> Creating Organization with parameters: {name: 'Foo', label: 'Bar', ...}
2017-09-09 23:02:02 - robottelo.ui - INFO - >>> Searching for Organization using parameter(s): {name: 'Foo'}
2017-09-09 23:02:02 - robottelo.ui - INFO - >>> Editing Organization with parameters: {description='Something new'}
2017-09-09 23:02:02 - robottelo.ui - INFO - >>> Searching for Organization using parameter(s): {name: 'Foo'}

I think this type of output is easier to follow as it tells me that:

  • I created a new org
  • I searched for it
  • I attempted to edit it (changing its description field)
  • I searched for it again

What do you think?

All 5 comments

@omaciel @JacobCallahan

Thanks @chbrown13 and good to see you back :)

Thanks, is there any specific format/desired output for what the log messages should print?

Hmmm I think that showing what is happening in terms of creation of, searching for, editing or deletion of content should be present, without actually showing what elements are being looked at (which should require a more verbose mode). For example:

2017-09-09 23:02:02 - robottelo.ui - INFO - >>> Creating Organization with parameters: {name: 'Foo', label: 'Bar', ...}
2017-09-09 23:02:02 - robottelo.ui - INFO - >>> Searching for Organization using parameter(s): {name: 'Foo'}
2017-09-09 23:02:02 - robottelo.ui - INFO - >>> Editing Organization with parameters: {description='Something new'}
2017-09-09 23:02:02 - robottelo.ui - INFO - >>> Searching for Organization using parameter(s): {name: 'Foo'}

I think this type of output is easier to follow as it tells me that:

  • I created a new org
  • I searched for it
  • I attempted to edit it (changing its description field)
  • I searched for it again

What do you think?

Ok cool, that sounds good.

Was this page helpful?
0 / 5 - 0 ratings