You can have a look at the explanation, which is given in the below link. http://mahimavbscript.blogspot.com/2010/09/file-system-object-vs-files.html
On Wed, Feb 16, 2011 at 3:06 AM, Shawn <[email protected]> wrote: > The posts/replies by the others have pretty much told you how to open > the file. The one thing to realize is that your question actually > referenced two different concepts. > > #1) Opening a file - when dealing with text files you will use the > Expert View in QTP where you will be programming in VBScript. At this > point you will use FSO to access text files. The FSO Object Model was > created by Microsoft as part of VBScript and there is a lot of info > out there at MSDN, doing a search on google or taking a training > class. > > #2) Descriptive Programming is a QTP concept where you skip the > default way of using the Logical Name in accessing object definitions > in the Object Repository, but instead you replace the Logical Name > with property definitions to reference the object. This is normally > only done in advance programming where you want to loop through a list > of values displayed on a web page or you have a property value that is > very dynamic and you find it easier to code it this way (typically > using variables and/or arrays for the value of a specific property). > There is syntax and rules that have to be followed when using > descriptive programming. > --- > Shawn LoPorto > Learn QTP Online Today! > Visit: http://www.asi-test.com/ASI/products/ > > > > On Feb 14, 3:04 am, kalyani k <[email protected]> wrote: > > how to open a text file in qtp using descriptive programming? Can anybody > > send me the answer. > > -- > You received this message because you are subscribed to the Google > "QTP - HP Quick Test Professional - Automated Software Testing" > group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/MercuryQTP?hl=en > -- You received this message because you are subscribed to the Google "QTP - HP Quick Test Professional - Automated Software Testing" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/MercuryQTP?hl=en
