Data Bind Multiple Sources

6 posts, 1 answers
  1. Mark
    Mark avatar
    22 posts
    Member since:
    May 2011

    Posted 01 Jul 2011 Link to this post

    Hi,

    I'm currently creating a single test that would be needing 2 datasources. Is that possible?

    I saw some documentation that they are using 2 tests for multiple data binding. That would mean that for our Test Studio Project will have many tests just to accomodate the other data binded test.

    Thanks
  2. Answer
    Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 01 Jul 2011 Link to this post

    Hi Mark,

    Natively Test Studio only supports binding a test to a single data source. Please see our KB article on Dynamic Data Binding for a good work-around, though.

    For advanced data binding we recommend using the OnInitializeDataSource test extension as documented here. Using this test extension, you can write code that creates a data table from any source that you can program. Test Studio will then use the data table you created as the data source for tests.

    Best wishes,
    Plamen
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  3. Mark
    Mark avatar
    22 posts
    Member since:
    May 2011

    Posted 04 Jul 2011 Link to this post

    Hi Plamen,

    Thanks for your reply. I have another question regarding the checking out of data sources on TFS. We used XML as a datasource and we would edit it. But when we click edit on the test studio. The file opens on the Internet Explorer. And file doesn't checks out.

    How can I check it out from tfs? and replace it with new data?
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 04 Jul 2011 Link to this post

    Hi Mark,

    Thank you for reporting this issue and I am sorry that you are running into this problem. I have logged this issue as a bug and you can track its progress in our PITS system here.

     On editing the XML file: Xml files are opened in Internet Explorer by default. If you want to change that you just have to right click on any XML file and choose "Open with". Then click on "Choose default program...". Select your Xml editor of choice (a simple Notepad will work) and check  "Always use the selected program to open this kind of file". The program you have selected will open your XML files from now on when you click on "Edit" in Test Studio's GUI.

    All the best,
    Plamen
    the Telerik team
    Register today for a live 'What's New in Test Studio R1 2011 SP2' event on Tuesday, July 19 at 2pm EST!

    Have you looked at the new Online User Guide for Telerik Test Studio?
  5. wish
    wish avatar
    43 posts
    Member since:
    Aug 2011

    Posted 07 Sep 2011 Link to this post

    Hi Mark,

    Good Morning.,

    I gone thru ur query and am intrested in knowing the way how you implemneted the by using IExecutionExtensiion...

    Currently am in need of setting datasource to my test scripts dynamically..

    Can you pls help me by sharing/explain me code how to implement OnInitializeDataSource test extension approach...

    currently am preparing small demo on telerik test studio for my application...

    my management is are the way like need to set datasources to test scripts dynamically...

    pls help me.

    Thanks in advance..
    Hari
  6. Mark
    Mark avatar
    22 posts
    Member since:
    May 2011

    Posted 07 Sep 2011 Link to this post

    Hi Hari,

    Sorry to say that I haven't tried yet using the dynamic data binding.

    Thanks,
    Mark
Back to Top