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

Using data from parameters from TestCase in TFS

3 Answers 91 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
srijaya
Top achievements
Rank 1
srijaya asked on 09 May 2016, 02:43 AM

I started with my evaluation of Telerik Test Studio a couple of days ago. I am somewhat familiar with CodedUI.

As a part of my eval, I have a a teststudio test with many CodedSteps. I am able to link it to a TFS TestCase (Associated Automation).

If I wanted to use the parameters from my linked manual TestCase here in each coded step, similar to a TestMethod() DataSource in CodedUI, how do I go about it?

This is what I intend to do:

 [DataSource("Microsoft.VisualStudio.TestTools.DataSource.TestCase", "https://x.visualstudio.com/tfs/DefaultCollection;xx", "11", DataAccessMethod.Sequential)]

 [CodedStep(@"Enter text 'Telerik test studio' in 'LstIbText'")]

public void doSearch()

{

TestContext.DataRow...

..}

 

It doesnt seem to work and throws object reference not found. Furthermore, the CodedStep disappears from .tstest. I added a TestMethod() attribute there and tried as well. But I know it's incorrect.

How do I drive the parameter data from an associated TFS TestCase? Or any insight on any alternate approach to get this parameter data?

 

thanks

 

 

3 Answers, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 12 May 2016, 05:12 AM

Hello Srijaya,

Thank you for your interest in Test Studio. Unfortunately I am afraid you cannot use data from a test case in TFS. You can only use data in Test Studio from the following sources:

- Excel spreadsheet
- XML file
- CSV file
- Database source

Thank you for your understanding.

Regards,

Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
srijaya
Top achievements
Rank 1
answered on 12 May 2016, 12:06 PM

Thank you for the reply.

 

Is there a way to get an object handle to the associated TFS test case atleast?

I can try writing some custom code around it.

Like I said, I have a TFS testcase and just like codedui test, my tstest is associated to this test using "Associated Automation" tab of the testcase.

0
Ivaylo
Telerik team
answered on 17 May 2016, 06:21 AM
Hello,

Unfortunately I am not aware whether this is possible at all.

In any cases this is not related to Test Studio at all, as it involves custom coding.

Thank you for your understanding.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
srijaya
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
srijaya
Top achievements
Rank 1
Share this question
or