Completed
Last Updated: 07 May 2014 11:59 by Arathi
ADMIN
Cody
Created on: 14 Feb 2014 20:14
Type: Bug Report
0
Remote run yields "The path is not of a legal form"
If a VB project contains a coded step like this:
me.ExecuteTest("Folder1\SubTest.tstest")

It will run perfect locally but you will get the following error when you try to run it on a scheduling server:
'2/14/2014 2:09:10 PM' - 'Fail' : 1. [WebTest_CodedStep] : New Coded Step
------------------------------------------------------------
Failure Information: 
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[WebTest_CodedStep] : New Coded Step'.
InnerException:
System.ArgumentException: The path is not of a legal form.
   at System.IO.Path.NormalizePath(String path, Boolean fullCheck, Int32 maxPathLength)
   at System.IO.Path.GetFullPathInternal(String path)
   at System.IO.FileInfo.Init(String fileName, Boolean checkHost)
   at System.IO.FileInfo..ctor(String fileName)
   at ArtOfTest.WebAii.Design.ProjectModel.TestFileHandler.LoadFromDisk(String pathToFile, Boolean autoLoadTypes, FileOpenResult& result)
   at ArtOfTest.WebAii.Design.ProjectModel.Project.LoadTest(String filePath)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(String relativeTestPath)
   at ArtOfTest.WebAii.Design.BaseWebAiiTest.ExecuteTest(String relativeTestPath)
   at TestProject1.WebTest.WebTest_CodedStep() in C:\Users\gibson\AppData\Local\Temp\2\Projects\e23244dd-2975-4c14-b40c-47d782e243bc\TestProject1\WebTest.tstest.vb:line 73
4 comments
Arathi
Posted on: 07 May 2014 11:59
Also this issue is applicable for all test cases i.e. test cases which are not being called from code behind.
Arathi
Posted on: 07 May 2014 11:58
I have installed latest version of telerik studio May2014. But with this update many of test cases gets error that unable to load test case. 

So how can I overcome this issue?
ADMIN
Daniel Djambov
Posted on: 17 Mar 2014 07:56
Telerik: We have now improved the logging and in such situation the error message will detect missing test as step in code and will report such error. The fix will be available in our next product planned release in April 2014.
ADMIN
Daniel Djambov
Posted on: 26 Feb 2014 07:40
Telerik: This is a known issue and is not VB specific and is the same for C# projects. The problem is that when there is a test that is called to be run from code in Remote Execution scenario, when uploading the Test List with the Storage Service to DB, we don't upload the test used as step in the code, because we don't know what test is called from the code. However there is a workaround to overcome the situation: if you create a Temp test list and include in it all tests that are called from code as steps and then run this Temp list Remotely, this will upload all those tests to DB. By doing this you will ensure all needed tests are in the DB and then when you run you original Test Lists remotely it will download from DB all tests relative for the project (including the ones from the Temp list that are called as steps from code) and Test List will run successfully and find all its needed tests.