This is a migrated thread and some comments may be shown as answers.

[Solved] ImageFilePath from a URL

3 Answers 32 Views
ASP.NET AJAX WebAii RadControls
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ravi
Top achievements
Rank 1
Ravi asked on 07 Aug 2012, 08:19 PM

I have a usecase where I want to publish the results of my tests on a website and have the user open the .aiiresult file to view the results of running the test suite. The problem I am encountering is that the image files showing the exception screen captures are missing on the users filesystem. Is there a way for me to set the path to a URL. The snippet below is from the result file of executing a test suite, the ImageFilePath points to an image in a relative path. Is it possible to change the image file path to a URL?

If there is a better solution to my problem I would like to know? Thanks. Below is the xml snippet.

 

<Item Type="ArtOfTest.WebAii.Design.AutomationStepResult" Version="2012.1.618.0">
                <ResultType Type="ArtOfTest.Common.Design.ResultType">Fail</ResultType>
                <ExecutionException Type="ArtOfTest.Common.Design.Exceptions.ElementFindException" Version="2012.1.618.0">
                  <HostState Type="ArtOfTest.WebAii.Design.AutomationHostState" Version="2012.1.618.0">
                    <DOMFilePath Type="System.String">TelerikTest-1344363117502-1_files\PRPCSmoke_42_DomTreeOnFailure.txt</DOMFilePath>
                    <Mode Type="ArtOfTest.WebAii.Design.BrowserStateCaptureMode">DomAndImage</Mode>
                    <ImageFilePath Type="System.String">TelerikTest-1344363117502-1_files\PRPCSmoke_42_ImageOnFailure.png</ImageFilePath>
                   <TechType Type="ArtOfTest.Common.TechnologyType">Html</TechType>
                    <FriendlyName Type="System.String">Capture Of 'Page (MyTestApp08071412 - SmartBPM)' @8/7/2012 2:18:04 PM</FriendlyName>
                    <__DataMembers />

 

3 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 10 Aug 2012, 02:57 PM
Hello Ravi,

Yes of course you can change (manually edit) the image file path to a URL. Just make sure the png file exists on the specific (remote) location.  
We are planning to add this functionality the results to be viewed via web but I cannot provide you with ETA on that.

All the best,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Ravi
Top achievements
Rank 1
answered on 10 Aug 2012, 08:37 PM
Thanks for the quick reply.

I changed the ImageFilePath to a vaild URL, like shown below. But the image doesnt show up in the images tab of the Failure Details. Do I need to change the Type or is there a special syntax for specifying the URL?

<ImageFilePath Type="System.String">http://localhost:8081/userContent/telerik-results/1344439991099/TelerikTest-1344439991113-1_files/PRPCSmoke_42_ImageOnFailure.png</ImageFilePath>

Thanks
0
Ivaylo
Telerik team
answered on 15 Aug 2012, 12:40 PM
Hello Ravi,

I have done some further tests and it seems I confused you which I apologize for. You cannot use URLs, but we will accept a UNC path instead. I hope that will work for you.
We are planning to implement that functionality to make results available through a web page but I cannot provide you with an ETA on this.

Thank you for your understanding regarding this matter.

Regards,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
ASP.NET AJAX WebAii RadControls
Asked by
Ravi
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Ravi
Top achievements
Rank 1
Share this question
or