It is currently Mon May 20, 2013 1:37 pm

All times are UTC


You can access below Applications



Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: How to change the dynamically created excel file name in QTP
PostPosted: Thu Sep 23, 2010 10:46 pm 
Offline

Joined: Thu Sep 23, 2010 10:35 pm
Posts: 3
In my Web applications when we click excel button it saves the excel file to the selected location. It is generated dynamically and I need to check if the excel file contain the correct data or not. So I want to open that dynamically created excel file (which has the name of the current day current time including seconds ). How to open this file and how to change the name of the file
Share |


Top
 Profile  
 
 Post subject: Re: How to change the dynamically created excel file name in QTP
PostPosted: Fri Sep 24, 2010 8:47 am 
Offline
Site Admin
User avatar

Joined: Mon Mar 01, 2010 2:53 pm
Posts: 118
Location: Ottapidaram, Tamil Nadu, India
Create a script to find the Excel file path link in your web application and store it in your local system.

There should be some way to find/identify the link path. I can mention the code and object repository entry details if If see your web application.

And then, you can access the saved Excel using createobject as below.

Code:
Set objExcel = CreateObject("Excel.Application")


Using this objExcel, you will be able to do whatever (including renaming file) you can do with Excel manually.

You can refer this article for sample usage of this excel object.
Share |

_________________
Thanks,
Rajamanickam A Image
QualityPoint Technologies Image
"Always bear in mind that your own resolution to succeed is more important than any one thing." — Abraham Lincoln


Top
 Profile  
 
 Post subject: Re: How to change the dynamically created excel file name in QTP
PostPosted: Wed Feb 23, 2011 5:52 am 
Offline

Joined: Wed Feb 23, 2011 5:47 am
Posts: 1
Yes, I agree with Rajamanickam this is a proper way to get Solution to your problem. You can easily create this kind of script with the help of javascript.
Share |

_________________
Software Testing Services|manual software testing services


Top
 Profile  
 
 Post subject: Re: How to change the dynamically created excel file name in QTP
PostPosted: Thu Mar 03, 2011 7:25 am 
Offline

Joined: Wed Feb 02, 2011 9:20 am
Posts: 30
This information really helped me. Also, the article link worked good for me.
Share |

_________________
operational excellence consulting


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron