Setup database

4 posts, 0 answers
  1. Maria
    Maria avatar
    4 posts
    Member since:
    Oct 2011

    Posted 08 Nov 2011 Link to this post

    Hello,

    I'm trying to automate tests using Test Studio framework of a Silverlight application. Now, I want to setup my database before running some tests to ensure that the tests are going to run successfully.

     How can I do it? Is there any option on Test Studio that helps me doing it?

    Best regards,
    Maria
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 08 Nov 2011 Link to this post

    Hi Maria,

    Thank you for evaluating Test Studio.

    If you haven't done so already, please check out our online documentation section on Data Driven Testing and let me know if you experience any difficulties after following those instructions.

    Hope to hear from you soon!

    Regards,
    Plamen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Maria
    Maria avatar
    4 posts
    Member since:
    Oct 2011

    Posted 08 Nov 2011 Link to this post

    First of all, I want to thank you for your quick answer.

    I had read the documentation that you suggest me and I knew that I could do data driven-tests. But want I really want to know is if there ir any way that I could alter my oracle databse throw test studio.
    Can I do this?

    Thank you.

    Best regards,
    Maria
  4. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 09 Nov 2011 Link to this post

    Hello Maria,

    I'm sorry for the late response. There is a way to set up your Oracle database before running the test, but you have to do it through code. You need to add code to the following method as described in this article to do all the work connect to and setting up your data base as needed.

    public override void OnBeforeTestStarted()  {  }

    I can't really assist you writing the code needed to set up the Oracle database, because we don't have an Oracle server here, but I'm sure you will find plenty of information on the internet. Here are some articles i found during a quick Google search:

    http://omegacoder.com/?p=445
    http://oliverprodinger.wordpress.com/2007/08/18/simple-oracle-connection-in-c-oracle-10g-xe/
    http://www.codeproject.com/KB/database/C__Instant_Oracle.aspx
    http://msdn.microsoft.com/en-us/library/system.data.oracleclient.oracleconnection(v=VS.90).aspx

    Hope this helps!

    Kind regards,
    Plamen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top