cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to access file names from shared network path in “Directory” Data Source

SOLVED
Highlighted
Frequent Visitor

Unable to access file names from shared network path in “Directory” Data Source

Detailed problem statement:

  • ReadyAPI Version 2.2.0 composite project has been created with “Javascript” language. We were in need to automate the validation of the output files.

When we use Directory and give shared network drive as \\<servername>\<foldername>, we were not getting any output.

But if we pass directory path as absolute as “C:\SLP”, we are able to get the output.

 

Would need help to find a way to get the output of fileNames from Directory Datasource when we give "Network path"

1 ACCEPTED SOLUTION

Accepted Solutions
Community Hero

Re: Unable to access file names from shared network path in “Directory” Data Source

Hi @dougan76 

 

Sorry - I just want to clarify - you say that if you use the UNC network drive mapping style it doesnt work - but then you say if you use the absolute C:\SLP it does work - but C:\SLP is relative not absolute.  Sorry - I'm not picking holes here - I just want to be clear.

 

The Universal Naming convention (which is absolute) of a network drive = \\servername\sharename\foldername

 

Have you specified the sharename in the path when trying to map to the correct folder?

 

If this doesn't work - you could try the relative drive mappings R:\foldername - and strictly speaking unless you are using floating licenses - you won't be running the ReadyAPI! project on multiple machines so you don't need to worry about different  people's machines having different network drive mappings.  I suppose you could ensure that EVERYONE who is executing the project have the same network drive mappings so there's no problem - but I appreciate you don't want to use relative drive mappings in this case

 

Obviously using the relative drive mappings wont work on any machine that doesn't actually have the drive mapped!

 

Cheers

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
2 REPLIES 2
Community Hero

Re: Unable to access file names from shared network path in “Directory” Data Source

Hi @dougan76 

 

Sorry - I just want to clarify - you say that if you use the UNC network drive mapping style it doesnt work - but then you say if you use the absolute C:\SLP it does work - but C:\SLP is relative not absolute.  Sorry - I'm not picking holes here - I just want to be clear.

 

The Universal Naming convention (which is absolute) of a network drive = \\servername\sharename\foldername

 

Have you specified the sharename in the path when trying to map to the correct folder?

 

If this doesn't work - you could try the relative drive mappings R:\foldername - and strictly speaking unless you are using floating licenses - you won't be running the ReadyAPI! project on multiple machines so you don't need to worry about different  people's machines having different network drive mappings.  I suppose you could ensure that EVERYONE who is executing the project have the same network drive mappings so there's no problem - but I appreciate you don't want to use relative drive mappings in this case

 

Obviously using the relative drive mappings wont work on any machine that doesn't actually have the drive mapped!

 

Cheers

 

richie

if this helped answer the post, could you please mark it as 'solved'? Also if you consider whether the title of your post is relevant? Perhaps if the post is solved, it might make sense to update the title of the post to something more descriptive? This will help people when searching for problems.
Community Manager

Re: Unable to access file names from shared network path in “Directory” Data Source

Thanks for the help, Richie!

 

@dougan76, is this what you are looking for?

---------
Tanya Gorbunova
SmartBear Community Manager

Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓
New Here?
Join us and watch the welcome video:
Watch the new interview
Top Kudoed Authors