Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading from txt file on Quality Center
#1
Not Solved
Hi,
i have a problem about the txt file path. If i read file from my pc i have no problem, but now i want to put the script and the txt file on Quality Center. I have used a code like:

Code:
Dim fso, filer, type_id
Set fso  = CreateObject("Scripting.FileSystemObject")
Set filer= fso.OpenTextFile("[QualityCenter] Subject\TEST_AUTOMATICI_QTP\Registrazione_Sblocco_log\reg_input_preC1.txt",1)  '1=reading
type_id  = 2

'Lettura input per il type_id voluto
Do while filer.AtEndofStream <> True
   data = filer.ReadLine()
   If left(data,1)=cstr(type_id) Then
      arr=split(data,";")
   End If
Loop

but i obtain error about not found path. I proved to use both:
"Subject\TEST_AUTOMATICI_QTP\..."
"[QualityCenter] Subject\TEST_AUTOMATICI_QTP\..."
(obviously the txt file is really present on Quality Center :-) ).
Any idea?
Thanks in advance
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Reading XML Data from a WebPage shaan.mishra87@gmail.com 1 2,251 09-28-2016, 09:16 PM
Last Post: supputuri
  Comapre txt file with different number of lines anushreebehura 0 1,766 06-02-2015, 06:28 PM
Last Post: anushreebehura
  Reading an amount from statement shipu 0 1,923 12-24-2013, 01:42 AM
Last Post: shipu
  reading a value for GIF image sujaravi123 1 2,530 03-29-2012, 07:47 PM
Last Post: Ankesh
  Reading the position (x,y) of a text in WebElement writetoprabha 2 6,521 05-30-2011, 02:08 PM
Last Post: Sathiya

Forum Jump:


Users browsing this thread: 1 Guest(s)