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

Setup database

3 Answers 99 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Maria
Top achievements
Rank 1
Maria asked on 08 Nov 2011, 10:41 AM
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

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 08 Nov 2011, 11:51 AM
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
0
Maria
Top achievements
Rank 1
answered on 08 Nov 2011, 12:11 PM
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
0
Plamen
Telerik team
answered on 09 Nov 2011, 10:27 PM
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
Tags
General Discussions
Asked by
Maria
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Maria
Top achievements
Rank 1
Share this question
or