Hi Srikanth,
I guess you need to give full path rather than the relative path. Say for
example in windows,
DataTable.Import("*D:\Project*\Data
Files\1.CreatReq_Requestor_Review_Sponsor_Approval_Approver.xls")
If my guess is right, you were executing the scripts from your local
machine through command line. Hence relative path worked. Now you have
imported it to QC. Relative path will only work if you have any current
directory (..\..\). Please try with Full Path and see if the problem still
persists.
On 7 August 2012 23:39, NEERJA nawani <[email protected]> wrote:
> You need add this path in tools>Option>folder
>
>
> On 7 August 2012 23:37, Ganesh muralidharan <[email protected]> wrote:
>
>> 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
>>
>
>
>
> --
> ---
> Thanks and Regards
> Neerja Nawani
> +91 99210 82318
>
> --
> 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,
Santhoshi
--
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