In my QTP script I have a word in notepad that ends in a
question mark, for example... "father?" As part of my
script I want to delete the question mark. How do you
delete a character in notepad?

Answer Posted / satya

U can do it with SFO script[I am not sure of Syntax or
exact code,just approach I m Mentioning Below]-
Set oObj=createObject("Script.FyleSystemObject")
oFile=oObj.openTextFile("YourPath")
Do Until EndOfSream
oStr=oObj.readLine
if InStr(oStr,"?")>0 Then
RePlace(oSter,"?","")
Loop

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Discuss the QTP Environment?

811


Can we create user defined functions in qtp?

741


What are the ordinal identifiers in web page?

822


what type of run time errors you get while you ar edoing rpg program?

1686


How to open a new test using quicktest professional?

755


Is QTP supports Unix. If yes, then how the test automation is done?

1932


Hi,All How to create a link in excel sheet using qtp

3182


What are test settings and global settings?

779


wht is Manual Testing Frame work. Pls anybody can give appropriate answers

1800


Hi I know two types of testing processes. 1. Reaquirments stage,test design,code review's, Design review's, Test Plan, Test Cases design, test execution, Defect Reporting and tracking, UAT, Signoff. 2.Test Initiation , Test Plan, Test Design, Execution,Bug tracking, UAT, Sign off.

1578


how to idetfy which test cases are automated?who will deside that plz tell me

1743


Describe how Smart Identification is used

1873


I have created 3 actions in test action1, action2, action3 but I want run action 1,action 3,action2 how can you change in the actions in keyword view?

825


With what extension you can save the list of tests in a file to run in test batch runner?

743


What is an object repository?

794