Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to create text file
#1
Not Solved
i want to create below text file. Can someone help

Condition : 1
Status : Pass
Test Condition : Enter username in username textbox.
Actual Result : UserName entered successfully.
-------------------------------------------------
Condition : 2
Status : <>
Test Condition : <>
Actual Result : <>
-------------------------------------------------
Condition : 3
Status : <>
Test Condition : <>
Actual Result : <>
-------------------------------------------------
Condition : 4
Status : <>
Test Condition : <>
Actual Result : <>
Reply
#2
Not Solved
I can guide you if at all you are interested to explore and learn further.

1. Look for 'FilesystemObject'
2. If you have understood point 1, you would know how to create a text file.
3. For your requirement you will need to 'append' the file as you are writing the results after every iteration.
4. If you have understood upto point 3, its a cakewalk from here. You write a function which creates a textfile and appends the data into it. call this function wherever you have to report and Voila ! you have what you need.

I am sure you would come across several frustrations when you are learning this, but believe me, its worth to give it a shot !
Basanth
Give a fish to a man and you feed him for a day..Teach a man how to fish and you feed him for life.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to read a text file using FSO from bottom to up order?? vallalarasu.p 0 2,378 10-13-2014, 11:14 AM
Last Post: vallalarasu.p
  Retrieving Text from a PDF file smartkarthi 2 4,404 08-22-2013, 11:44 AM
Last Post: smartkarthi
  Cannot attach the text file to email arpan 2 3,264 07-19-2013, 12:13 AM
Last Post: arpan
  Read text from text file and save it into a variable in qtp arpan 3 12,087 06-19-2013, 08:34 PM
Last Post: arpan
  Need to compare two text files - ignoring some text nelly27281 2 4,371 09-09-2012, 12:09 PM
Last Post: freeboynil

Forum Jump:


Users browsing this thread: 1 Guest(s)