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.

When I playback the same the file cannot be saved

This is a discussion on When I playback the same the file cannot be saved within the WinRunner forums, part of the Software Testing category; Hi, I need to record the following 1. Open natepad 2. write string in the notepad 3. save the file 4. close the fiile When i playback the same the ...

Go Back   Geeks Talk > Software Testing > WinRunner
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 05-23-2007
Expert Member
 
Join Date: Feb 2007
Posts: 1,279
Thanks: 0
Thanked 192 Times in 154 Posts
Geek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura aboutGeek_Guest has a spectacular aura about
When I playback the same the file cannot be saved

Hi, I need to record the following

1. Open natepad
2. write string in the notepad
3. save the file
4. close the fiile

When i playback the same the file cannot be saved as already the same file exists.
How do i solve this issue.Can you send me the TSL.

Question asked by visitor dominic
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 05-23-2007
Expert Member
 
Join Date: Nov 2006
Location: Hyd-IND
Posts: 528
Thanks: 1
Thanked 63 Times in 50 Posts
sutnarcha is on a distinguished road
Re: When I playback the same the file cannot be saved

You can get the notepad file string and the file name from the data grid like you get the inputs in the data driven testing.

I will have to work on this for the TSL, so wait until I come back to this thread.
__________________
Lack of WILL POWER has caused more failure than
lack of INTELLIGENCE or ABILITY.

-sutnarcha-
Reply With Quote
  #3 (permalink)  
Old 06-01-2007
Junior Member
 
Join Date: Oct 2006
Location: hyderabad
Posts: 12
Thanks: 0
Thanked 1 Time in 1 Post
vvvssvijayaditya is on a distinguished road
Re: When I playback the same the file cannot be saved

This code can help u some what.


if (file_open("C:\\Untitled-Notepad",FO_MODE_READWRITE)==E_OK)
{
set_window("Untitled-Notepad");
type("Sample Test");
menu_select_item("File";Save); # check the syntax once of menu
file_close(""C:\\Untitled-Notepad");
}
else
{
tl_step(" File Does not Exists",1,"");
}
Reply With Quote
Reply

  Geeks Talk > Software Testing > WinRunner

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
Record and Playback feature Lokesh M Test Cases 3 12-30-2008 11:18 AM
Getting a new Date from a Calender control in Playback? eiman WinRunner 4 07-25-2008 06:19 AM
In QTP, How to call OR run an action saved in unknown drive babulu QTP 3 04-30-2007 05:28 AM
Do we record and playback in real time Geek_Guest QTP 3 04-18-2007 07:50 AM
Start up scripts in winrunner without Rec or Playback Lokesh M WinRunner 6 12-25-2006 11:05 PM


All times are GMT -4. The time now is 12:54 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