Hi,
We are planning to execute scripts via commandline (ArtOfTest.Runner.exe). Hence we needed to know generation of log files .
I saw there is an option for exporting results /excel /html/trx in UI. Anything similar in commandline.?
I saw this http://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/external-log-file
I have 2 questions regarding article on above link.
1) Do we have to include the function in each and every test script file.? Or is it ok to put as common function and call?
2) How can i pass Test Result from a script to a common function.
Thanks,
VVP
9 Answers, 1 is accepted
The log from the ArtOfTest.Runner.exe is logged into C:\Program Files (x86)\Telerik\Test Studio\Logs\Telerik Test Studio Trace Log.txt.
Regarding the other two questions:
1. You don't need include in every test step. You can implement your own execution extension.
2. Please elaborate a bit more. What exactly do you need to achieve? Where do you want ot pass the results? You can manipulate with the results also in the execution extension.
Let me know if that helps.
Regards,
Boyan Boev
Telerik
HI,
I didn't see any logs under C:\Program Files (x86)\Telerik\Test Studio\Logs\Telerik Test Studio Trace Log.txt.
And the first query was regarding ability to generate reports in trx format after executing in command line. Because Team-city only processes trx reports (others are MSTEST/ Nunit etc which is not applicable when creating Telerik tests) .
Currently i am getting aiiresult after execution which is not recognised by teamcity.
If no option available, any tool available to convert .aiiresult to trx?
Thanks,
VVP
You have two options here:
1. You can run Telerik Test Studio tests via MSTEST which will completely resolve your issue. Please see this article.
2. If you use TFS you can define the publish settings of ArtOfTest.Runner so the results can be included and visualized in the build. See the bottom of this article. However this will not create a standalone *. trx file.
Let me know if that helps.
Regards,
Boyan Boev
Telerik
Thanks Boyan,
I was able to generate the reports using Mstest.
Coming to execution extension, i didnt tried that yet.
But lets say my scripts are in single dll (same namespace), can i implement execution extension in such a way that after execution of any script, summary of test execution will be shown including how many passed /failed etc?
I am planning to put this " OnAfterTestListCompleted(RunResult result) " in some common lib and reference in scripts.
Thanks,
VVP
By implementing your own execution extension (following these instructions) dll, all of the hooks listed in those instructions will automatically be called by every test from every test project ever run on that machine. You must place your dll into the folder C:\Program Files (x86)\Telerik\Test Studio\Bin\Plugins. You don't reference it in your test projects, nor do you call its methods from a test. The methods will automatically be called by our testing engine.
You'll want to put code into the OnAfterTestCompleted method. This method hands you the results of that test. The OnAfterTestListCompleted method doesn't get called when test lists are executed on a remote Telerik Test Studio Execution Server. It also is not called when running tests via MSTest.
You can use whatever namespace in your implementation of your execution extension that you like. It doesn't matter to the Test Studio testing engine. What does matter is that your class is derived from IExecutionExtension as shown in the documentation.
P.S. I looked in your account and noticed there's no connection to a Test Studio license. We need to have your account linked to a license to give you further technical support. Do you know who your license owner is? Please ask this person to add you as a licensed user of Test Studio. If you need assistance with this, please let us know.
Regards,
Cody
Telerik
HI Cody,
Thanks .i will try and let you know.
Coming to the license part, yes we have few licenses of test studio.Do i need to ask the license owner to add my email-id which i use to login here?
Thanks,
VVP
Yes, please ask your license owner to add you as a licensed user, as shown in the attached screen shot. That way your Telerik.com account is properly linked to your groups license. This will also allow you to create your own private support tickets which get 24 business hour response priority.
Regards,
Cody
Telerik
Hi Cody,
Regarding adding as licensed user.
I asked the person who manages licenses in our company. So he will add my official email id only. But my current telerik username is created with gmail.
So do i have to create a new user in this forum?
You can have the license assigned to anyone and any email address, it is at discretion of the license owner.
Regards,
Peter
Telerik