Package com.atlassian.bamboo.analytics
Class AnalyticsTestUtils
- java.lang.Object
-
- com.atlassian.bamboo.analytics.AnalyticsTestUtils
-
public class AnalyticsTestUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
AnalyticsTestUtils.LogLineMatcher
-
Constructor Summary
Constructors Constructor Description AnalyticsTestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
countLines(File file)
static File
currentLogFile(File analyticsPath)
static void
failAndLogEvents(int numLines, File currentLogFile)
static com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>
scanLogForEvent(File logFile, AnalyticsTestUtils.LogLineMatcher matcher, int startPoint)
static boolean
scanLogForEvent(File logFile, String eventName, int startPoint)
static void
waitForMauEvent(File logFile, AnalyticsTestUtils.LogLineMatcher matcher, int startPoint)
-
-
-
Method Detail
-
scanLogForEvent
public static boolean scanLogForEvent(File logFile, String eventName, int startPoint) throws Exception
- Throws:
Exception
-
waitForMauEvent
public static void waitForMauEvent(File logFile, AnalyticsTestUtils.LogLineMatcher matcher, int startPoint) throws Exception
- Throws:
Exception
-
scanLogForEvent
public static com.atlassian.pageobjects.elements.query.TimedQuery<Boolean> scanLogForEvent(File logFile, AnalyticsTestUtils.LogLineMatcher matcher, int startPoint) throws Exception
- Throws:
Exception
-
failAndLogEvents
public static void failAndLogEvents(int numLines, File currentLogFile) throws IOException
- Throws:
IOException
-
-