Here what does the ..\..\ mean? Is it that you have given the relative path
in QTP or you hv hidden the actual drive name?


DataTable.Import("..\..\Data Files\1.CreatReq_Requestor_
Review_Sponsor_Approval_Approver.xls") t
DataTable.Import("..\Automation\Data
Files\1.CreatReq_Requestor_Review_Sponsor_Approval_Approver.xls")


On Tue, Aug 7, 2012 at 1:41 PM, srikanth r <[email protected]> wrote:

> HI all,
>
> I am new member of this group.
>
>
> I have problem with relative path in my current project. I Appreiciate if
> you can help me to resolve this.
>
> From the project Starting onwards we were executing the scripts from my
> local machine. i have used the below code for referring the Datasheet.
>
> DataTable.Import("..\..\Data
> Files\1.CreatReq_Requestor_Review_Sponsor_Approval_Approver.xls") this
> codes used to work fine when i execute my script from local machine.
>
> Recently we have been asked to export all our scripts in to QC. I have
> uploaded all my scripts and Test resouces into Quality Center except
> Datasheets.
> Since my customer watned to pass different values for each execution. so,
> except data files i have placed all my files Quality center.
> Issue here is, when i execute the scripts from QC it is giving a Run Time
> error as "The datatable.import(file) operating failed"
>
>
> Please let me know what is the relative path i have to give to execute my
> script from QC.
>
> also, wanted to inform you that Script is working fine if i specify the
> root directory as below
>
> DataTable.Import("..\Automation\Data
> Files\1.CreatReq_Requestor_Review_Sponsor_Approval_Approver.xls") this
> codes used to work fine when i execute my script from local machine.
> srikanth
>
> --
> 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
>



-- 
Regards,


Ganesh Muralidharan
'God Never Forgets'

-- 
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

Reply via email to