GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  Rational Robot
Go To First  |  Previous Question  |  Next Question 
 Rational Robot  |  Question 21 of 73    Print  
Q) How do we connect to database using Rational Robot?

  
Total Answers and Comments: 4 Last Update: September 05, 2006     Asked by: Kiran Kumar 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 25, 2006 03:43:05   #1  
kiran        

RE: Q) How do we connect to database using Rational Ro...

1. First we need to create script for single use test

2. Datapools are created

3. Script are edited whih will work for large number of data


 
Is this answer useful? Yes | No
June 15, 2006 12:44:04   #2  
Tarun        

RE: Q) How do we connect to database using Rational Ro...

Firstly You have to set a user/system DSN in your system which is invoked in rational by using SQAbasic commands.

SQLOpen() function establishes the connection

SQLExecQuery() function will execute the query using connection established.SQLRetrieve( ) function is used to retrieve the result of the query & store it in array form.


 
Is this answer useful? Yes | No
August 06, 2006 12:33:53   #3  
Prithvi Krishna        

RE: Q) How do we connect to database using Rational Ro...
To add to Tarun's comments - there's also SQLRequest function which accepts conn string query etc and also returns a result set.
 
Is this answer useful? Yes | No
September 05, 2006 04:16:43   #4  
sandeep namdeo        

RE: Q) How do we connect to database using Rational Ro...

First You have to make SYSTEM DSN .For that follow this

Start -> settings -> control panel -> Administrator Tools -> Data Sources(ODBC) : then click on SYSTEM DSN and create your DSN.(For this U have to create your database in MS-access or SQL server 2000 as per ur choice.)

then use this code

' Dim connection As Long
' Dim destination(1 To 50 1 To 125) As Variant
' Dim retcode As long
' Dim query as String
' Dim outputStr as String

' connection SQLOpen( DSN master1 outputStr prompt: 1)
' query select * from data1 'Execute the query
' retcode SQLExecQuery(connection query)
' msgbox retcode


This last stmt shows you the retcode id connection successfully establised the a positive code will retured else negative code will be there.


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape