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 interfaceAnalyticsTestUtils.LogLineMatcher
-
Constructor Summary
Constructors Constructor Description AnalyticsTestUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intcountLines(File file)static FilecurrentLogFile(File analyticsPath)static voidfailAndLogEvents(int numLines, File currentLogFile)static com.atlassian.pageobjects.elements.query.TimedQuery<Boolean>scanLogForEvent(File logFile, AnalyticsTestUtils.LogLineMatcher matcher, int startPoint)static booleanscanLogForEvent(File logFile, String eventName, int startPoint)static voidwaitForMauEvent(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
-
-