1 /******************************************************************************
2 * Copyright (c) 2016 Ericsson
4 * All rights reserved. This program and the accompanying materials are
5 * made available under the terms of the Eclipse Public License v1.0 which
6 * accompanies this distribution, and is available at
7 * http://www.eclipse.org/legal/epl-v10.html
8 *******************************************************************************/
10 package org
.eclipse
.tracecompass
.integration
.swtbot
.tests
.projectexplorer
;
13 * A helper class to store information about a test trace.
15 public class TestTraceInfo
{
16 private final String fTraceName
;
17 private final String fTracePath
;
18 private final String fTraceType
;
19 private final long fNbEvents
;
20 private final String fFirstEventTimestamp
;
25 * the name of the trace
27 * the trace type (Category with name format)
29 * the number of events in the trace
30 * @param firstEventTimestamp
31 * he first event timestamp in string form. See
32 * {@link #getFirstEventTimestamp()}
34 public TestTraceInfo(String traceName
, String traceType
, long nbEvents
, String firstEventTimestamp
) {
35 this(traceName
, traceName
, traceType
, nbEvents
, firstEventTimestamp
);
41 * the name of the trace
43 * the path of the trace. Whether or not this is absolute or
44 * relative is up to the client.
46 * the trace type (Category with name format)
48 * the number of events in the trace
49 * @param firstEventTimestamp
50 * he first event timestamp in string form. See
51 * {@link #getFirstEventTimestamp()}
53 public TestTraceInfo(String traceName
, String tracePath
, String traceType
, long nbEvents
, String firstEventTimestamp
) {
54 fTraceName
= traceName
;
55 fTracePath
= tracePath
;
56 fTraceType
= traceType
;
58 fFirstEventTimestamp
= firstEventTimestamp
;
62 * @return the name of the trace
64 public String
getTraceName() {
69 * @return the path of the trace. Whether or not this is absolute or relative is up to the client.
71 public String
getTracePath() {
76 * @return the trace type (Category with name format)
78 public String
getTraceType() {
83 * @return the number of events in the trace
85 public long getNbEvents() {
90 * The first event timestamp in string form. Tests use this to see if the
91 * cell contains this text (String.contains()). Since there can be timezone
92 * issues with hours and days, this value should only specify minutes and
93 * more precise digits. For example: 04:32.650 993 664
95 * @return the first event timestamp in string form
97 public String
getFirstEventTimestamp() {
98 return fFirstEventTimestamp
;