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

Exporting Results to html / Excel /trx / textfile when executed through Commandline

9 Answers 275 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
VVP
Top achievements
Rank 2
VVP asked on 22 Jul 2015, 05:47 AM

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

Sort by
0
Boyan Boev
Telerik team
answered on 24 Jul 2015, 02:02 PM
Hi Vishnu,

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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
VVP
Top achievements
Rank 2
answered on 30 Jul 2015, 06:38 AM

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

0
Boyan Boev
Telerik team
answered on 03 Aug 2015, 12:43 PM
Hi Vishnu,

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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
VVP
Top achievements
Rank 2
answered on 12 Aug 2015, 05:49 AM

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

0
Cody
Telerik team
answered on 13 Aug 2015, 07:53 PM
Hi Vishnu,

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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
VVP
Top achievements
Rank 2
answered on 14 Aug 2015, 04:49 AM

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

0
Cody
Telerik team
answered on 14 Aug 2015, 02:39 PM
Hello,

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
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
VVP
Top achievements
Rank 2
answered on 31 Aug 2015, 05:12 AM

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?

 

0
Peter
Telerik team
answered on 02 Sep 2015, 09:03 PM
Hello Vishnu,

You can have the license assigned to anyone and any email address, it is at discretion of the license owner. 

Regards,
Peter
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
VVP
Top achievements
Rank 2
Answers by
Boyan Boev
Telerik team
VVP
Top achievements
Rank 2
Cody
Telerik team
Peter
Telerik team
Share this question
or