Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to open a file in one script and write into it in another script
#1
Solved: 11 Years, 4 Months ago
Hi All,

Can anybody tell me how to open a file in one script and write into it in a different script?

I have to open a file once in login script and use it in all the test cases script to write the result of the test case into it.

I have written a code like this in login script

Code:
Dim fso
Set fso = createobject("Scripting.FileSystemObject")
Set tf = fso.CreateTextFile("path", True)
Now in my TEST_CASE 1 script I have to write

Code:
tf.writeline("Pass")

But this doesn't work.
Reply


Messages In This Thread
How to open a file in one script and write into it in another script - by reejais - 10-01-2010, 04:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  How to send/pass UFT Run Error Dialog as output value to main driver script lravi4u 0 593 11-05-2023, 03:55 PM
Last Post: lravi4u
  How do you Change Run mode mid script? Caleytown 6 7,234 03-25-2021, 08:27 AM
Last Post: RB26578
  picking different points in UFT using VB Script azjk786 0 1,061 12-14-2020, 09:57 AM
Last Post: azjk786
  script for mouseover rumitkon 2 2,011 02-20-2019, 12:52 AM
Last Post: rumitkon
  Call Stack in QTP Script smitapawar610 0 1,713 12-03-2018, 10:42 AM
Last Post: smitapawar610

Forum Jump:


Users browsing this thread: 1 Guest(s)