Q7

Remove Q7 Messages from AUT log.

Details

  • Type: Task Task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.10
  • Fix Version/s: 1.3.13
  • Component/s: Runtime
  • Labels:
  • Test Mode:
    Manual

Description

Customer ticket: http://xored.freshdesk.com/helpdesk/tickets/962

While running Q7 Tests by maven plugin on a Windows PC we get the following warning message on the error log view.
----->>> Waiting for Jobs during execution: click -----<<<< 

Additional info in the log file:
working time: 10009(ms)

That's why some tests fail when verifying that the error log view has to be empty.

Activity

Hide
vasily.loginov added a comment - 19/Jun/14 4:43 PM - edited

UIJobCollector puts messages to the AUT log. Need to implement message putting to the Reporting infrastructure using ReportManager/INodeBuilder classes.

There are two possible ways to do so:

  • Use events (INodeBuilder.createEvent(Event))
  • Add a new report node.

Important classes (in addition to the specified above):

  • org.eclipse.rcptt.ui.launching.DetailsDialog.generateContent() - generates content using SimpleReportGenerator.
  • org.eclipse.rcptt.ctx.group.impl.GroupContextProcessor.apply(Context, ISession) - contains the right way to use ReportManager/INodeBuilder.

There are reports in agents and runner also. These reports should also use the new approach.

Show
vasily.loginov added a comment - 19/Jun/14 4:43 PM - edited UIJobCollector puts messages to the AUT log. Need to implement message putting to the Reporting infrastructure using ReportManager/INodeBuilder classes. There are two possible ways to do so:
  • Use events (INodeBuilder.createEvent(Event))
  • Add a new report node.
Important classes (in addition to the specified above):
  • org.eclipse.rcptt.ui.launching.DetailsDialog.generateContent() - generates content using SimpleReportGenerator.
  • org.eclipse.rcptt.ctx.group.impl.GroupContextProcessor.apply(Context, ISession) - contains the right way to use ReportManager/INodeBuilder.
There are reports in agents and runner also. These reports should also use the new approach.
Hide
vasily.loginov added a comment - 25/Jun/14 3:30 PM - edited

Found existing org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder.getLogs(Node, LoggingCategory) function. Used it for saving logs in report.

Added log reporting into execution details of RCPTT (repo: xored/rcptt, branch feature/uijobcollector-messaging-refactoring)

Added log reporting into runner html report (repo: q7, branch feature/runner-html-report-logs)

Added mock-up of the problem: platform/resources/Hanging Jobs. The following test should help to reproduce the issue:

with [get-view "Q7 Quality Mockups"] {
    get-tree | select "platform/resources/Hanging Jobs"
    with [get-group "Hanging Jobs"] {
        get-editbox -after [get-label "Hang Timeout (ms):"] | set-text 25000
		get-combo -after [get-label "Hang Type:" -after [get-label "Hang Timeout (ms):"]] | select Schedule
	    with [get-button "Start New Job!"] {
	        click
	    }
    }
}

The resulting message in Error Log (or in the execution details) should be something like this:

--->>> Waiting timeout exceed [...]

Assigning to Vasily the First for merging

Show
vasily.loginov added a comment - 25/Jun/14 3:30 PM - edited Found existing org.eclipse.rcptt.sherlock.core.reporting.ReportBuilder.getLogs(Node, LoggingCategory) function. Used it for saving logs in report. Added log reporting into execution details of RCPTT (repo: xored/rcptt, branch feature/uijobcollector-messaging-refactoring) Added log reporting into runner html report (repo: q7, branch feature/runner-html-report-logs) Added mock-up of the problem: platform/resources/Hanging Jobs. The following test should help to reproduce the issue:
with [get-view "Q7 Quality Mockups"] {
    get-tree | select "platform/resources/Hanging Jobs"
    with [get-group "Hanging Jobs"] {
        get-editbox -after [get-label "Hang Timeout (ms):"] | set-text 25000
		get-combo -after [get-label "Hang Type:" -after [get-label "Hang Timeout (ms):"]] | select Schedule
	    with [get-button "Start New Job!"] {
	        click
	    }
    }
}
The resulting message in Error Log (or in the execution details) should be something like this:
--->>> Waiting timeout exceed [...]
Assigning to Vasily the First for merging
Hide
Vasili Gulevich added a comment - 25/Jun/14 6:51 PM

Merged into RCPTT repository.
Runner is still not merged.

Show
Vasili Gulevich added a comment - 25/Jun/14 6:51 PM Merged into RCPTT repository. Runner is still not merged.

People

Vote (0)
Watch (0)

Dates

  • Created:
    05/Jun/14 4:12 PM
    Updated:
    11/Nov/14 5:02 PM
    Resolved:
    02/Aug/14 10:44 AM