Exforsys

Online Training

CreateObject ,DLL, EXE, Run Time data

This is a discussion on CreateObject ,DLL, EXE, Run Time data within the Software Testing forums, part of the Testing category; I have three questions 1)Can You please explain me what is createobject function .....how to and where to use ...


Go Back   Exforsys > Testing > Software Testing

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-03-2007, 09:31 AM
Junior Member
 
Join Date: May 2007
Posts: 20
nehasahu is on a distinguished road
CreateObject ,DLL, EXE, Run Time data

I have three questions

1)Can You please explain me what is createobject function .....how to and where to use it.

2) What are DLL and EXE files do we use them in QTP.

3) THe data which we trap in the datatable at runtime is lost from the datatable after the program executes.... how to store this data permanently.


Thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 06-04-2007, 03:18 AM
Junior Member
 
Join Date: Mar 2007
Posts: 7
ramajkrishna is on a distinguished road
1. CreateObject function is to create and return a reference to an automation object.
for example if you want to work with excel then you can create a reference to excel object then later you can apply methods on the reference.
'creating a reference to excel object
set myxls=CreateObject("Excel.Application")
'making excel application visible
myxls.visible=true
'adding workbooks to excel application.
myxls.workbooks.add

3. if you want to store the data that is created in runtime, just keep a statement in your script that exports the data to some external file. like,

datatable.export "C:\myruntimedata.xls"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 06-04-2007, 12:40 PM
Junior Member
 
Join Date: May 2007
Posts: 20
nehasahu is on a distinguished road
Hi Rama,

Thanks a lot for the answers.
But i still have a doubt on my third question that i dont want to export all the data from the datatable to excel sheet..... i just want to export my third column data to the excel sheet ....So in this case what should be done.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 06-05-2007, 01:31 AM
Junior Member
 
Join Date: Mar 2007
Posts: 7
ramajkrishna is on a distinguished road
Exporting only one column

hi neha,
if you dont need other columns in the datatable to be exported to external file, then you can do one thing.
Delete all other columns of the datatable except the one column you want to export.
and then the export the datatable by using export method.

Datatable.GetSheet(" ").DeleteParameter(" ")
Datatable.Export "C:\myruntimedata.xls"

but here the problem is you will lose other columns' data of the runtime datatable.

Thanks&Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 06-05-2007, 12:57 PM
Junior Member
 
Join Date: May 2007
Posts: 20
nehasahu is on a distinguished road
ya rama u are correct i can do that but i also dont want to loose my other data which is there in the datatable.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 06-06-2007, 01:43 AM
Junior Member
 
Join Date: Mar 2007
Posts: 7
ramajkrishna is on a distinguished road
try this way

Export the entire datatable to one external file and after this delete the parameters you dont want. After this export your column to another external file.
hope this works and clears your problem.

Thanks & Regards
Ramakrishna.Jangatisetty
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 06-06-2007, 12:24 PM
Junior Member
 
Join Date: May 2007
Posts: 20
nehasahu is on a distinguished road
That sounds Great!!!!!!
Thanka a lot Rama
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 06-08-2007, 06:43 AM
Junior Member
 
Join Date: Mar 2007
Posts: 7
ramajkrishna is on a distinguished road
Thats Great.
hope your problem is cleared
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
comp.lang.c Answers to Frequently Asked Questions (FAQ List) Steve Summit Tech FAQ 0 06-01-2004 07:00 AM
Comp.software-eng FAQ (Part 0): periodic postings and archives David Alex Lamb Tech FAQ 2 05-23-2004 06:15 AM
Comp.software-eng FAQ (Part 0): periodic postings and archives David Alex Lamb Tech FAQ 3 04-18-2004 06:15 AM
[FAQ] FileMaker Pro - database for Macintosh and Windows Martin Trautmann Tech FAQ 0 04-17-2004 08:26 AM
Apple II Csa2 FAQs: Telecom Hardware & Transfers, Part 20/25 rubywand@swbell.net Tech FAQ 0 04-04-2004 08:29 AM


All times are GMT -4. The time now is 08:30 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2004 - 2007 Exforsys Inc. All rights reserved.