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

File extension specified '.tstest' is not a valid test extension.

31 Answers 386 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
swati bhat
Top achievements
Rank 1
swati bhat asked on 15 Oct 2013, 05:52 AM
Hello,

I have associated a Test Studo Web test with testcase in VS and trying to run it from MTM. But I get the following error. I have tried to run after installing test studio on agent and controller but still get the error. Please let me know.


Error adding test case [1210599] to test run: File extension specified '.tstest' is not a valid test extension.

31 Answers, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 15 Oct 2013, 02:20 PM
Hello Swati,

I am sorry to hear that you are running into this problem.

This is a common issue with MTM. Once the MS controller is registered and configured for use, if you install after that Test Studio, it will not take the Test Studio (or any other software using the QTAgent) libraries. In order to overcome this, you have to unregister and re-register the test controller (and sometimes reboot the machine) with the TFS server before it recognizes the .tstest extension as a valid extension.

Looking forward to hearing from you. 

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
swati bhat
Top achievements
Rank 1
answered on 15 Oct 2013, 05:57 PM
  • Unfortunately I still get the error every time I run my test "Error adding test case [1210599] to test run: File extension specified '.tstest' is not a valid test extension"
  • 1>Test studio was installed after registration of controller and agent
  • 2>Restarted machines
  • 3>Re-registered the controller and the agent

Note the test is associated with .tstest and not with the converted UnitTest coded version.

Any help would really help.

0
Boyan Boev
Telerik team
answered on 18 Oct 2013, 02:14 PM
Hi Swati,

I am sorry to hear you are still experiencing such issue.

After installing TS, rebooting both controller and agent usually helps solve this problem.

In order to assist you best please provide us some more detailed information about your setup:

- How many machines are involved.
- Which machine is configure to do what purpose.
- Is Test Studio installed on bot the build controller and the build agent (those could be the same or different machines)?

Hope to hear from you soon.
 

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
swati bhat
Top achievements
Rank 1
answered on 24 Oct 2013, 06:16 AM
 I am still blocked.below are the details .PLease help resolve issue ASAP.

 - How many machines are involved.
one agent and one controller. I have MTM installed on laptop from where I am running the testcase.
 - Which machine is configure to do what purpose.
Controller :win 2008 R2 with Test studio
Agent: Win 8 machine with R2
 - Is Test Studio installed on bot the build controller and the build agent (those could be the same or different machines)?
Yes.
Hope to hear from you soon.
 Regards,
Boyan Boev
Telerik
0
Shashi
Top achievements
Rank 1
answered on 24 Oct 2013, 12:13 PM
Swati,

If you haven't done so already, the following post on this forum might be of help:
http://www.telerik.com/automated-testing-tools/community/forums/test-studio/general-discussions/file-extension-specified-aii-is-not-a-valid-test-extension.aspx

Make sure all the required software that needs to be on the test controller and agent machines are installed.

Also, if you haven't done so, you may want to look at Question #10 in this FAQ blog article ...
http://blogs.msdn.com/b/vstsqualitytools/archive/2010/10/24/test-agent-test-controller-and-mstest-faq.aspx

Finally, for troubleshooting purposes, you may want to try creating a sample test with an extension other than Test Studio (create a new test of type other than one of the Telerik test types) and run it via Test Manager - see if you get the same error.  This would tell you whether the problem is related to TS or with your agent/controller configuration itself.

Hope that helps ...

Shashi
0
Boyan Boev
Telerik team
answered on 24 Oct 2013, 01:28 PM
Hello,

@Shashi, thank you for your detailed explanation. I have updated your Telerik points.

@Swati, try out what Shashi suggested and update this thread accordingly.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
swati bhat
Top achievements
Rank 1
answered on 25 Oct 2013, 12:08 AM
Thanks for the reply but my issue is not yet resolved. As per one of the link VS agent needs to be installed which I have already done.
The second link talks about Host Adapter. Do we need to register a new Host Adapter with Telerik web studio test with .tstest extensions .

If the .tstest is associated as automated test then the Test Type is set as Telerik test Studio. Does this need a custom host adapter?
If the  unit test is associate which can be generated from the .tstest file the Test Type is set as Unit Test and the error does not occur any more.

So the clari ty needed is around how to run when test type is set as Telerik test Studio and does this need a separate Host Adapter to be registered. If yes do you have it available and can you please share it.


Rest all settings look ok as expected.

thanks,
Swati.
0
swati bhat
Top achievements
Rank 1
answered on 25 Oct 2013, 06:20 PM
I am using a evaluation version. Also running it through mstest gives

failed to queue test run. The path is not of legal form. Any help would be really appreciated.
0
Boyan Boev
Telerik team
answered on 29 Oct 2013, 03:22 PM
Hi Swati,

It seems that you are using VS 2005/2008.

Please note that we do not support VS 2005/2008. You must use VS 2010 or above, where host adapter does not apply. Here is an article about MSTest.


About the path MSTest requires a full path to the test to be executed.

Hope this helps.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
swati bhat
Top achievements
Rank 1
answered on 29 Oct 2013, 04:28 PM
I am sorry but I am not using VS 2005/2008.  I am using VS 2012.
0
Cody
Telerik team
answered on 30 Oct 2013, 08:42 PM
Hello Swati,

When/where do you get the error "The path is not of legal form."? I know you will get this if you use MSTest from the command line like this:

MSTest /testcontainer:mytest.tstest

Instead you should preceed it with the full path, or (if in the current directory) a .\ like this:

MSTest /testcontainer:.\mytest.tstest

Let me know if that helps.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
swati bhat
Top achievements
Rank 1
answered on 05 Nov 2013, 11:18 PM
Hi Cody,

I forgot to update the thread but on investgating I was able to get the .tstest run using the MStest.exe. But I am still not able to run them via MTM. In MTM all I give is associate the right .tstest . When I try to run it , it is still giving me the error

Error adding test case [1210599] to test run: File extension specified '.tstest' is not a valid test extension.

Let me know what setting are needed to get this running.
Thanks
_Swati.
0
Ivaylo
Telerik team
answered on 08 Nov 2013, 01:37 PM
Hello Swati,

Please let me interject in this thread since Cody is out of the office.
I can see that you have two machines involved in your setup. Please note that on each machine involved in your setup you should have the Test Studio Run Time at least. If that is the controller please make sure you unregister and register it again. 

Please let me know how this is working for you.

Regards,
Ivaylo
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Paul
Top achievements
Rank 1
answered on 19 Nov 2013, 12:11 PM
Hi Cody & Boyen,

We're currently seeing the same thing. If I attempt to run a written in test studio test through MTM, a failure resulting in the error message "Error adding test case [my test case number] to test run: File extension specified '.tstest' is not a valid test extension." is shown in the results view of MTM.

I've associated an test studio automated test to a test case in Visual Studio 2012 and then run the test through MTM with the test environment running on a separate machine which has Test Runner running on it and Test Agent Started after test runner.
The Test Controller is our main server where TFS is hosted, based on earlier comments, does that also require an instance of test runner and/or a reboot?

Also, other posts elsewhere on the forum suggest that test studio files cannot be run through MTM without first being built into an executable. This does appear contradictory and would be nice to know one way or the other.

The version of Test Studio and Test Runner that I'm running are both 2013.1.1002.0

It would be useful if we could run tests through MTM.

Thanks

Paul
0
Shashi
Top achievements
Rank 1
answered on 19 Nov 2013, 01:23 PM
Paul,

First, to answer your question, yes - it is possible to run Test Studio tests via MTM and you don't have to do anything special (compared to other types) to get it to run.  We have been running Test Studio tests in a TFS/MTM environment for almost 3 years now.

If you haven't done so, can you check if the problem is only with Test Studio tests or are you seeing this with other test types too?  Try creating a test with one of the Microsoft test types supported in your version of VS (maybe a Coded UI test or a Unit Test).  It doesn't matter what the test does as long as you have a way to tell that the test ran.

If the problem is only with Test Studio tests, please review the thread whose link I provided in an earlier post in this thread.  In particular:
a) Make sure that all software listed in one of the posts in that thread are installed on the test server(s) - the servers that have the test controller and test agent.  In particular, make sure Visual Studio (a version that includes Test Manager) is installed on the test servers.
b) If you installed Test Studio Runtime on the server after the test controller/agent, try restarting the controller and agent (if that doesn't work, you can try unregistering/registering and/or rebooting the server).
c) Make sure the test environment associated with the test server is correctly configured and that your test plan is associated with the correct test environment (depending on the firewall rules, you may need to create the environment via MTM on the test server - rather than on your own computer). 
d) Verify the correctness of your test settings and that the test plan is associated with the correct test settings.
Instructions to create/configure test environment and test settings are in the Microsoft Help documentation.

@Swati:
My apologies for the delay in responding to your question a few posts back.  We have not created custom host adapters to get our setup to work.  If you still haven't got your setup to work, you may want to try the above to see if it works or if you get further clues regarding the problem.

Shashi 
0
Cody
Telerik team
answered on 21 Nov 2013, 10:54 PM
Hi Paul,

First, thank you Shashi for offering your assistance.

@Paul, I just answered your (David's??) support ticket on this same problem. We'll continue working your specific issue there.

For the benefit of all our customers, here's some answers to your questions:

The Test Controller is our main server where TFS is hosted, based on earlier comments, does that also require an instance of test runner and/or a reboot?

Yes, Test Studio (any edition) must be installed on your Test Controller. If it isn't then you will get the error message "File extension specified '.tstest' is not a valid test extension".

Also, other posts elsewhere on the forum suggest that test studio files cannot be run through MTM without first being built into an executable.

Specifically a .DLL. Test projects, including Test Studio projects, will compile the coded steps into a .DLL which the test runner (MTM or our own runner) will require for running the tests. Even if you do not have any coded steps, a .DLL will be created in the process. It will simply be a mostly empty DLL containing some unused infrastructure code.

The version of Test Studio and Test Runner that I'm running are both 2013.1.1002.0.

That version works just fine with MTM. As you probably already are aware, it is very important that all machines involved, including your local desktop, have the same build of Test Studio installed. For example full Test Studio 2013.1.1002 can work with Run-Time edition 2013.1.1002. But it cannot work with Run-Time 2013.1.911.

Regards,
Cody
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Rajendiran
Top achievements
Rank 1
answered on 25 Mar 2014, 07:40 AM
Hi need below clarifications,
1. Extension test
2. How to open existing test
3. How to get object/element property at run time
0
Cody
Telerik team
answered on 25 Mar 2014, 12:45 PM
Hello Rajendiran,

I'm not sure I understand what information you're asking for. Can you clarify in more detail what information you are seeking?
  1. "Extension test" Is this some type of test? This thread is about what file extension Test Studio tests have. All Test Studio tests use the file extension .tstest.
  2. How to open existing test - if you're referring to a Test Studio test, it's pretty simple. Run Test Studio, open an already created Test Studio test project, once in the IDE double click the test to open it.
  3. How to get object/element property at run time - All by itself this is too big of a question. We have 4 different test types plus an application can have dozens of different types of elements and hundreds of properties to those elements. How you get an element/property depends on what type of application you're testing, what type of element you're after and what property you're after. There's simply no way I list all the different possibilities here. If you can be more specific in what element and property you're trying to get, then I can help you understand how to get it at run time.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Rajendiran
Top achievements
Rank 1
answered on 26 Mar 2014, 07:32 AM
Thankyou. I am working on silverlight application for POC.

1. I want to verify single object/elements, whether is available in page. How to verify the single object?
2. Is there any way to create test, without recording?
3. How to get colums/rows count from Grid?
4. How to select different cell values from Grid?

Thankyou in advance...

0
Cody
Telerik team
answered on 27 Mar 2014, 05:54 PM
Hello Rajendiran,

  1. What kind of element? A text block? The items of a drop down select? A checkbox? Test Studio has a Verify Exists for any element on the page. Just target which element you want it to look for.
  2. Well, you could create a test that is nothing but a series of coded steps. Then you're just hand programming all of your tests. You loose the significant value and time saver you get using our recorder.

    You can create non-coded steps using our Steps Suggestion panel. This feature assumes you have already recorded some actions for some elements. This panel offers a very limited selection of actions you can do with those pre-existing elements.

    Outside of that, no there isn't. We strongly recommend taking full advantage of our recorder. We view it as a very valuable time saver in create Test Studio test scripts.
  3. In a Silverlight application, due to the nature of how the Silverlight run-time engine works, this can be difficult or sometimes impossible. Silverlight tends to only let us have access to the rows that are currently visible in the UI. Thus a grid could contain 1000+ rows in the back end data, but only show 25 at a time in the UI and when we go and look at the grid element, 25 is the count we get. There are complicated ways in code to scroll the grid and count as the code automatically scrolls the grid. These methods sometimes work but tend to be brittle.

    You run into the exact same problem trying to count columns.
  4. Generally you try to find the cell you want based on its content, scrolling vertically or horizontally as needed until the target cell appears, then you simply issue a Click for that element (the cell is a separate UI element).


Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Rajendiran
Top achievements
Rank 1
answered on 02 Apr 2014, 06:20 AM
Hi Thank you..

1. How to access excel through coding(VB), Any settings required Or Need to declared any specific namespace..?
2. MsgBox also not supporting...?
3. What is use of Start Execution Server...?
4. Not able to run/execute the Test List, Its not responding..?

Thanks.
0
Cody
Telerik team
answered on 02 Apr 2014, 08:31 PM
Hi Rajendiran,

  1. A Google search will turn up LOTS of page hits how to access an Excel file through code. We also have this code sample.
  2. I don't understand the question. Please clarify what you're trying to ask.
  3. That launches our Execution Server which will run on your desktop from the Windows System Tray, which is only useful if you also setup a Scheduling and Storage server.
  4. This is a separate problem that should be on a separate support ticket. We'll start our troubleshooting of this here.

Do you see our Execution Server running in the system tray? Is your machine part of a domain or a workgroup? If it's in a workgroup we have a known problem (does not exist for domain attached machines). Add the name of your machine to your HOSTS file. Then shutdown and restart our Execution Server.


Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Rajendiran
Top achievements
Rank 1
answered on 11 Apr 2014, 04:39 AM
Thanks.

1. And how to access silverlight Grid in run time using vb?
2. How to get row and column count from silverlight Grid?
3. How to get child Item count from silverlight Grid?
4. How to perform operation on child item inside the cell from silverlight Grid ?

Thanks,
Raj

0
Rajendiran
Top achievements
Rank 1
answered on 11 Apr 2014, 11:47 AM
Hi,
We are using silverlight application. How to access the silverlight Grid...?
1. How to get Row and Column count?
2. How to click on link inside the cell?
3. How to check checkbox inside cell?
4. How to get cell value from corresponding cell?
5. How to access the Scroll bar from Grid?
Please share the sample coding/concepts for Silverlight Grid.
Please find the attachment.....
Thanks,
Rajendiran.P
0
Cody
Telerik team
answered on 15 Apr 2014, 08:54 PM
Hello,

To interact with a Silverlight grid programatically, you will need to use our DataGrid class. When you install Test Studio, you will find a number of samples already installed. Please review those samples, plus our online code samples for Silverlight. When you have more specific questions, come back here.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Chinnu
Top achievements
Rank 1
answered on 17 Apr 2014, 07:01 PM
Hello Cody. I am looking into the below issue which we were facing from couple days (Swati following up on this thread earlier) . We need your help to resolve this 
 "Error adding test case [1217032] to test run: File extension specified '.tstest' is not a valid test extension."

So far We have done the following things

Environment:

1.  Test Controller : Windows Server 2008 R2 Enterprise
          a  Has Test Studio Ultimate
          b. Ran couple of tests using Test Studio Ultimate / Command Line mstest from Controller. Working fine as expected
          c. All the services are up and running
          d. Registration with TFS Collection
               i. Unregistered the Test Controller and RESTARTED
               ii.Registered the Controller and RESTARTED
2. Test Agents : Windows Server 2008 R2 Enterprise
         a. Both Agents has ‘Test Studio Ultimate’
         b. Ran couple of Tests from Test Studio and both are Working fine
         c.  All Services are up and running
        d.   Registration with Controller
              i.    Unregister the Agent with Controller and Stopped the Services. RESTARTED the machine to take affect
              ii.  Started the Services, Registered the Agent with Controller and RESTARTED

 Thanks in Advance for your HELP!!! 
0
Cody
Telerik team
answered on 17 Apr 2014, 08:48 PM
Hello Chinnu,

I have copied this inquiry to the support ticket Swati filed on this problem.

For the benefit of the rest of our customers, I will post the resolution here.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Chinnu
Top achievements
Rank 1
answered on 29 Apr 2014, 05:21 PM
Hello Cody,

I am still waiting for resolution. Could you please update us how we can avoid this error?
0
Cody
Telerik team
answered on 29 Apr 2014, 10:16 PM
Hello,

For cross reference, that's ticket 810813 (took me a while to find it). I am confused what happened. Somehow that ticket fell through the cracks and did not get a response. I am so very sorry about that!!! I'm answering it now.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Cody
Telerik team
answered on 29 Apr 2014, 10:20 PM
Hello,

After looking closer, I see that I did respond to Swati back on April 17th. We never received a follow up response to the diagnostic steps I asked her to perform.

Regards,
Cody
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Elena
Telerik team
answered on 20 Apr 2017, 03:45 PM
Hello Hunderson,

Thank you for sharing your experience with the community. I hope it will be useful for the rest as well! 

Regards,
Elena Tsvetkova
Telerik by Progress
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
swati bhat
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
swati bhat
Top achievements
Rank 1
Shashi
Top achievements
Rank 1
Cody
Telerik team
Ivaylo
Telerik team
Paul
Top achievements
Rank 1
Rajendiran
Top achievements
Rank 1
Chinnu
Top achievements
Rank 1
Elena
Telerik team
Share this question
or