08-19-2016 04:21 AM - edited 08-19-2016 04:21 AM
Hi All ,
I Need to write data into a file using TestStand and i configired the input and out as Below but i am getting error as "An error occurred calling 'Write' in 'ITextStream' of 'Microsoft Scripting Runtime' [Error Code: -2146828234] "
I have followed the same Procedure for Read Text which works fine for me.
Hope few others might have faced the problem/ or i may be doing something wrong.
Do Needful.
Solved! Go to Solution.
08-19-2016 06:46 AM
Problem found, While opening a file i used IO Mode as ForReading instead of ForWriting.
Unnecessarily thread created, but then hope this may help someone later when they face particular issue.
03-10-2018 04:23 AM
How can I get the Object reference of a Test file in TestStand?
You are using Locals.GTS__TAG_FILE local variable to give the File object reference. So, I think you should get the Text File Object reference and store it in this Local variable before.
Can you please share me how you got the Object reference of the Text file (Open a File) and Where you specified Write/Read Modes.?
Thanks and Regards,
Manikandan
03-12-2018 02:31 AM
Create a Action Step and change the adapter in Properties-General tab to ActiveX/COM, and create a Variable with Object Reference as Type and map the same in the Module Tab (Object Reference).
03-16-2018 06:50 AM
Hi Palanivel,
How do I assign a text file's object reference to this variable (that I created with type Object Reference)?
Thanks,
Mani
03-21-2018 04:12 AM - edited 03-21-2018 04:13 AM
To Open File use this snippet information