public void setTimerName(string timerName) { if (string.IsNullOrEmpty(timerName)) { currentTimerName = null; } else { currentTimerName = TestRunIdProvider.getTestRunId() + "#" + timerName; } }
/*** * Sets a new dynaTrace Timer Name. * All activities in the browser from now on will be assigned to that timer * Timers in dynaTrace allow you to subscribe measures such as #of Network Requests, Exec time of JavaScript, #of Database Calls, ... * -> these measures will automatically be analyzed and regression across builds will be identified for you * @param timerNames A list of names will be concatenated with / which allows you to group timers. Example: MyWebSite/Login, MyWebSite/Search, ... */ public void setTimerName(string[] timerNames) { if (timerNames.Length > 0) { string timerName = null; foreach (string name in timerNames) { if (timerName == null) { timerName = name; } else { timerName += "/" + name; } } currentTimerName = TestRunIdProvider.getTestRunId() + "#" + timerName; } else { currentTimerName = null; } setCurrentTimerNameViaJavaScript(); }