Using data from parameters from TestCase in TFS

4 posts, 0 answers
  1. srijaya
    srijaya avatar
    2 posts
    Member since:
    May 2016

    Posted 08 May Link to this post

    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

     

     

  2. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 12 May Link to this post

    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!
  3. srijaya
    srijaya avatar
    2 posts
    Member since:
    May 2016

    Posted 12 May in reply to Ivaylo Link to this post

    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.

  4. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 17 May Link to this post

    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!
Back to Top