How Can I Include a text file in my Compile .pc6 file - which I can use when running the .pc6 file
I have abc.txt file form which I read variable when running the script,
so I want to compile this abc.txt file along with .pc6
You can't complie a text file. What you should do is compile the script into PC6 format, then save the PC6 executable on your test machines. Put your text file that the PC6 takes its input from in the same directory as the PC6 file. Its very easy.
Also note (from the docs):
To run p-code files on a clean machine, you must install MTRUN.EXE, VTEST60.DLL and VTRES.DLL on the machine. For Microsoft Internet Explorer HTML functionality testing, you will also need WEBDRIVE.DLL and IEHELPER.DLL. For Microsoft Active Accessibility functionality testing, you will also need VTAA.DLL.
Thanks Shannon but my problem is slightly different I have 50 test machines to run tests on and my text file is a global file which has input data , well even i looked at many possiblities but i dont think there is a way except to put the files on these m/c's every time there is a change !!!!
Originally posted by harshala: Thanks Shannon but my problem is slightly different I have 50 test machines to run tests on and my text file is a global file which has input data
<font size="2" face="Verdana, Arial, Helvetica">If that is all you need to do, are all of the machines networked? Put the text (ini) file on a shared drive so that all machines on the network have access to it! You could also place the text file on a private area of a company intranet.
Michael - Armageddon was yesterday, today we have a serious problem!
If you really want to put every thing in .pc6 file, you can go for .vtr file.
.vtr is a Visual Test Resource file. You can put your data in a string table of .vtr file and access it from your test script. But, you may need to change the logic of reading/parsing this data as you can't read this data line by line like in files.