예제 #1
0
 /// <summary>
 /// For editor, standalone, and other platform's.
 /// </summary>
 private void OnApplicationQuit()
 {
     if (!ReportingManager.IsPlaybackStartedFromEditorWindow && RecordingMode == RecordingMode.Playback)
     {
         ReportingManager.FinalizeReport();
     }
 }
예제 #2
0
 public void OnPlayModeStateChanged(PlayModeStateChange state)
 {
     if (state == PlayModeStateChange.ExitingPlayMode || state == PlayModeStateChange.EnteredEditMode)
     {
         ReportingManager.FinalizeReport();
     }
 }
예제 #3
0
    /// <summary>
    /// For iOS "end state".
    /// </summary>
    /// <param name="pause"></param>
    private void OnApplicationPause(bool pause)
    {
#if !UNITY_EDITOR
        if (RecordingMode == RecordingMode.Playback)
        {
            ReportingManager.FinalizeReport();
        }
#endif
    }
예제 #4
0
    /// <summary>
    /// For Windows Store & Android "end state".
    /// </summary>
    /// <param name="pause"></param>
    private void OnApplicationFocus(bool hasFocus)
    {
#if !UNITY_EDITOR
        if (!hasFocus && RecordingMode == RecordingMode.Playback)
        {
            ReportingManager.FinalizeReport();
        }
#endif
    }
예제 #5
0
        public virtual void EndAutomation()
        {
            state = State.COMPLETE;

            OnAutomationFinished.Invoke(new AutomationFinishedEvent.Args(this));
            // If this is a single test run from an Automated Run editor window, finalize the report.
            if (ReportingManager.IsPlaybackStartedFromEditorWindow)
            {
                ReportingManager.FinalizeReport();
            }
        }