Can u call txt extension file in QTP?

Answer Posted / king

we can .txt extension files.
using file system object we can call the .txt files.

for example:

set a=createobject("scripting.filesystemobject")
set b=a.opentextfile("path of the *.txt file",mode)
1-read mode, 2- writing mode and 8- append mode

using 2 lines u can call the particular txt file.

if u have any quarry plz call me or mail me i will explain
u.
raju.ippali@gmail.com
9823257761

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what QTP Options do you know?

2928


What is Cross browser testing? Does UFT support it?

623


if our qtp vb Script may be Currepted then What we want do?

1491


what function you write to do database testing with the help of qtp?

1365


Why do you create a text checkpoint on a Web application? What is the purpose of the Close method?

1366






What is the difference between run time object and test object in QTP?

572


How to use checkpoints in qtp ?

588


How can you identify the browser and its information using QTP script?

552


A FORM CONTAINS 5 FIELDS. 1 FIELD IS ENABLED REMAINING(4) FIELDS DISABLED. MY QUESTION IS ENTER VALUES INTO 1 FIELD AFTER THAT CLICK TAB BUTTON THEN 2 FIELD ENABLE THIS PROCESS CONTINUE UPTO 5TH FIELD. HOW TO WRITE CODE IN DESCRIPTIVE PROGRAMMING. PLZ TELL ME THE PROCEDURE AND CODE FOR IT.

1284


what could go wrong with test automation?

1509


What are output values and why they are used ?

627


Hi Friends, I worked with 8.2 not with 9.2. Please help me in this prob. I created one script and recorded some think and save as Test 1 then I opened process--open the object repository manager. Switch to file->save->give some name->save as Objectrepo1.tsr file. (This is the global repository file.) Then I went to object repository->tools-> associate repository ->click + icon ->open the previously saved Objectrepo1.tsr file. This is the global repository Now I created one more script and save as Test 2. In this script I am calling script with the Help of "Call of existing action" and I executed but QTP is not able to execute B’cos it is QTP is not able to read the Object Repository of Test 1. Please let me know why? Once I made Script 1 as a shared Obj. Repository so it would not give any Problem. Right?

1493


How to customize qtp?

614


What are the disadvantages of recording test cases in qtp?

599


How you know that a test case is a regression test case

3065