Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Storing Output values

This is a discussion on Storing Output values within the QTP forums, part of the Software Testing category; Hey, I am using "Insert Text Output" method to store output value into a datatable. When the test is executed I can see the output values in the Test Results ...

Go Back   Geeks Talk > Software Testing > QTP
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 01-16-2008
Junior Member
 
Join Date: Dec 2007
Location: Melbourne
Posts: 6
Thanks: 1
Thanked 1 Time in 1 Post
sameetjoshi is on a distinguished road
Storing Output values

Hey,

I am using "Insert Text Output" method to store output value into a datatable. When the test is executed I can see the output values in the Test Results window under "Run Time Data Table". However, the Data table of the test is empty

I want to use Datatable. Export or Exportsheet to store the output values into an Excel sheet. I unable to do so since the data table is blank.

Can anyone pls help me in getting the output values

Thank You.
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-16-2008
Moderator
 
Join Date: Oct 2007
Location: Frankfort, KY
Posts: 283
Thanks: 3
Thanked 54 Times in 36 Posts
Anshoo_Arora is on a distinguished road
Re: Storing Output values

This is a very simple code that will allow you to store values in an Excel Worksheet:

Save the two output values in "FOutputValue" and "SOutputValue" and use the following code:

(Pre-req: Create a dummy file named dummy.xls in the root folder)

Set ExcelAppl=CreateObject("Excel.Application")
Set WrkBook=ExcelAppl.Workbooks.Open("C:\dummy.xls")
Set sheetPrimary=WrkBook.Activesheet
sheetPrimary.Cells(1,1)=""&FOutputValue
sheetPrimary.Cells(1,2)=""&SOutputValue
WrkBook.Save
ExcelAppl.Quit
Reply With Quote
Reply

  Geeks Talk > Software Testing > QTP

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
First output value is getting overwritten by second output Geek_Guest QTP 2 01-05-2008 04:40 AM
Storing folders of automation aarruunnaa Testing Issues 1 12-26-2007 10:52 AM
How to output values, then make it input? grandview QTP 0 10-24-2007 08:46 PM
Storing form variables in a session neelim Java 2 09-18-2007 01:37 PM
Storing data in db without iterating Samudyatha C# 1 07-31-2007 10:25 AM


All times are GMT -4. The time now is 12:02 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved