GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Testing Tools  >  QTP
Go To First  |  Previous Question  |  Next Question 
 QTP  |  Question 609 of 684    Print  
How to Submit data from an external file to a url using QTP
Hi,
I would like to submit/load test data from an external source like a flat file or excel (multiple test cases in a file) and submit that test data to a url (application that I am testing). I need to capture the response that I get back from the application.

Can I do that using QTP ?

Thanks
Sai



  
Total Answers and Comments: 2 Last Update: March 03, 2008     Asked by: sairam100 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 27, 2008 09:10:05   #1  
latamindq Member Since: February 2008   Contribution: 4    

RE: How to Submit data from an external file to a url using QTP
We can submit the external file in the data table using the import when we change the script at the values then by using the output value u can get the result in the run-time data table.
 
Is this answer useful? Yes | No
March 03, 2008 01:57:55   #2  
RicGupta1984 Member Since: September 2007   Contribution: 2    

RE: How to Submit data from an external file to a url using QTP

''creation of new sheet using import function:-
'let say new sheet has two columns userid and password.

v DataTable.AddSheet ("newsheet").AddParameter ("ColumnName Time" "ColumnValue 8:00" )
'msgbox"go"

'''new sheet "gupta" will be created..

DataTable.ImportSheet "c:/name.xls" "gupta" "newsheet"

''here 1 is first columnname of newly imported sheet 3 is index of newly created 'sheet:provided "gloabl" "action1" were already there.global's index is 1 action's 2 and so on.

x datatable.Value (1 3)
''here 2 is first columnname of newly imported sheet
y datatable.Value (2 3)
msgbox x
msgbox y

'IMPORTING data from QTP to APPLICATION...
''open your application.here i had used IE

SystemUtil.Run "C:Program FilesInternet Exploreriexplore.exe" "" "C:Documents and Settings...
wait (10)
Browser("Browser").Navigate ("open ANY BROWSER")
wait(10)

Browser("Browser").Page("Gmail: Email from Google").WebEdit("Email").Set datatable(1 3)
Browser("Browser").Page("Gmail: Email from Google").WebEdit("Passwd").Set datatable (2 3)
Browser("Browser").Page("Gmail: Email from Google").WebButton("Sign in").Click

'''NOW PUT OUTPUT VALUE CHECKPOINTS for capturing values through application.

'thanks



 
Is this answer useful? Yes | No

 Related Questions

Operates stand-alone, or integrated into Mercury Business Process Testing and Mercury Quality Center. Introduces next-generation “zero-configuration” Keyword Driven testing technology in QuickTest 
Latest Answer : Object spy is used in QTP for Descriptive Programming. to Identify the Object properties ...

Answer posted by shreethik on 2005-06-09 08:36:38: Output values enable to view the values that the application talkes during run time.When paramaterised, the values change for each iteration.Thus by creating 
Latest Answer : By using Text Output value we can capture a runtime value form the application under test and store it in a variable or in a localsheet ...

Latest Answer : File extension of the code is .mts and for the local object repository .mtr for shared repository .tsr ...

Latest Answer : Run-Time data table stores the run-time values(output  values). It can be viewed in Test reults window. ...

Latest Answer : Testing the same set of functionality with different inputs is Data Driven test. This is done by using parameterization. ...

Latest Answer : Just a lil change to Sivakumar's script dataSource = ExcelFilePath & ExcelFileNameSet oCon = CreateObject("ADODB.Connection")oCon.Provider = "Microsoft.Jet.OLEDB.4.0"oCon.ConnectionString = "Data Source=" & dataSource ...

In order to fetch test data from Database we have to create a adobdb connection object to connect with data base. the syntax is .... >CreateObject("Adodb.connection").  
Latest Answer : Hai Const adOpenStatic = 3Const adLockOptimistic = 3Const adUseClient = 3Set objCon=CreateObject("ADODB.Connection") Set objRec=CreateObject("ADODB.Recordset")objCon.Open "DRIVER={Oracle in OraHome92};SERVER={Servername};UID={Username};PWD={Password};DBQ={Dbnmae}"objRec.CursorLocation ...

How can i call a external action which is not added external action of an action. Means I want to call ActionC from ActionA. but ActionC is not an exteranl action of ActionA. Thanks in advance
Read Answers (2) | Asked by : rajan

Latest Answer : Hai,=====You can add an external Action programatically using the CommandRunAction ActionName, [IterationMode , IterationRange]Before you can use the RunAction statement in the Expert View for an external action, you must first call or copy the external ...
Read Answers (3) | Asked by : rajan

These are the new features which are available in QTP8.2 and which are not present in 6.5 version.Keyword View: Lets you easily build and maintain tests without writingVBScripts.Auto-Documentation: Provides 
Latest Answer : Really great help,Thanks ...
Read Answers (2) | Asked by : James


 Sponsored Links

 
Related Articles

Breaking up XML into Relational Data

Breaking up XML into Relational Data While the preceding example shows how to construct an XML representation over relational data the example in this section illustrates how you can shred XML data back into relational data This reverse operation can be useful if your application works with relation
 

Querying Data with Oracle XQuery

Querying Data with Oracle XQuery Starting with Oracle Database 10g Release 2 you can take advantage of a full featured native XQuery engine integrated with the database With Oracle XQuery you can accomplish various tasks involved in developing PHP Oracle XML applications operating on any kind of dat
 

Retrieving XML Data

Retrieving XML DataTo retrieve XML data from an XMLType table you can use a SELECT SQL statement just as you would if you had to query a relational table For example to select the employee with the id set to 100 from the employees XMLType table discussed in the preceding section you might issue the
 

Using XMLType for Handling XML Data in the Database

Using XMLType for Handling XML Data in the Database Being an object type XMLType can not only be used to store XML data in the database but also to operate on that data via its built in methods Regardless of the storage model you choose XMLType provides a set of XML specific methods to operate on XM
 

Using Oracle Database for Storing, Modifying, and Retrieving XML Data

Using Oracle Database for Storing Modifying and Retrieving XML Data With Oracle XML DB you have various XML storage and XML processing options allowing you to achieve the required level of performance and scalability One of the most interesting things about Oracle XML DB is that it allows you to per
 

ODP.NET - Techniques to Improve Performance while Retrieving Data

ODP NET Techniques to Improve Performance while Retrieving Data Performance tuning is a great subject in Oracle Volumes of books would not be enough to cover every aspect of performance tuning in Oracle However in this section we will only discuss the fundamental performance techniques while working
 

ODP.NET - Populating a Dataset with a Single Data Table

ODP NET Populating a Dataset with a Single Data Table A dataset is simply a group of data tables These data tables can be identified with their own unique names within a dataset You can also add relations between data tables available in a dataset mosgoogle The following code gives you the details o
 

ODP.NET - Retrieving Typed Data

ODP NET Retrieving Typed Data While retrieving values from OracleDataReader we can extract information available in individual columns of a particular row either by using column ordinal position values or column names mosgoogle Retrieving Typed Data Using Ordinals ODP NET provides data specific enum
 

ODP.NET - Retrieving Data Using OracleDataReader

ODP NET Retrieving Data Using OracleDataReader OracleDataReader is simply a read only and forward only result set It works only if the database connection is open and it makes sure that the connection is open while you are retrieving data As the data that it retrieves is read only it is a bit faster
 

ODP.NET - Fundamental ODP.NET Classes to Retrieve Data

ODP NET Fundamental ODP NET Classes to Retrieve Data To retrieve data from an Oracle database using ODP NET we need to work with a few of the ODP NET classes At this point we will discuss the most fundamental classes available in ODP NET for retrieving data mosgoogle The following is the list of fun
 

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