title: InvalidOperationException: This cannot be used during play mode, please use SceneManager.CreateNewScene() instead
body: <p>As i am new to unity . I am trying to automate Unity game using unity inbuild tool "Editor Tests runner". I am able to write test cases but when i am running test cases getting below error.</p>
  
  <blockquote>
    <p>InvalidOperationException: This cannot be used during play mode, please use SceneManager.CreateNewScene() instead.</p>
    
    <p>UnityEditor.SceneManagement.EditorSceneManager.NewScene (NewSceneSetup setup, NewSceneMode mode) (at C:/buildslave/unity/build/artifacts/generated/common/editor/EditorSceneManagerBindings.gen.cs:47)</p>
    
    <p>UnityEditor.EditorTestsRunner.EditorTestsRunnerWindow.OpenNewScene () (at C:/buildslave/unity/build/Extensions/EditorTestsRunner/UnityEditor.EditorTestsRunner/TestRunner/EditorTestsRunnerWindow.cs:392)</p>
    
    <p>UnityEditor.EditorTestsRunner.EditorTestsRunnerWindow.RunTests (UnityEditor.EditorTestsRunner.TestRunnerFilter filter) (at 
    C:/buildslave/unity/build/Extensions/EditorTestsRunner/UnityEditor.EditorTestsRunner/TestRunner/EditorTestsRunnerWindow.cs:368)</p>
    
    <p>UnityEditor.EditorTestsRunner.EditorTestsRunnerWindow.RunTests (NUnit.Core.TestName[] tests) (at C:/buildslave/unity/build/Extensions/EditorTestsRunner/UnityEditor.EditorTestsRunner/TestRunner/EditorTestsRunnerWindow.cs:357)</p>
    
    <p>UnityEditor.EditorTestsRunner.EditorTestsRunnerWindow+c__AnonStorey1.&lt;>m__7 (System.Object data) (at C:/buildslave/unity/build/Extensions/EditorTestsRunner/UnityEditor.EditorTestsRunner/TestRunner/EditorTestsRunnerWindow.cs:232)</p>
    
    <p>UnityEditor.GenericMenu.CatchMenu (System.Object userData, System.String[] options, Int32 selected) (at C:/buildslave/unity/build/artifacts/generated/common/editor/GenericMenuBindings.gen.cs:122)</p>
  </blockquote>
  
  <p>I am running test cases on Game Play mode.</p>