cancel
Showing results for 
Search instead for 
Did you mean: 

TC7.50: Fix for aqFileSystem.FindFolders

Contributor

TC7.50: Fix for aqFileSystem.FindFolders

Hi,



I have the following folders at the <path>( network directory ) : "1.0.0.0", "2.a.b.c" and "update".




When I call this script:

[JScript]

var folders = aqFileSystem.FindFolders(path, "*.*.*.*");

for (var i = 0 ; i < folders.Count; i++)

  Log.Message(folders.Item(i).Name);




I have the following at the log:

1.0.0.0

2.a.b.c

update





instead of "1.0.0.0" and "2.a.b.c".




I think FindFolders method works wrong and if it is so, can we have a fix for this problem?




TC 7.50 Ent.




Thanks is advance

2 REPLIES 2
Contributor

RE: TC7.50: Fix for aqFileSystem.FindFolders

What happens if you put:



var folders = aqFileSystem.FindFolders(path, "?.?.?.?");
Moderator

RE: TC7.50: Fix for aqFileSystem.FindFolders

Hello Alexander,




We have reproduced such behavior, and we will investigate it. Unfortunately, we cannot create a fix - it is related to the complexity of the implementation. Currently, I can suggest that you use the '_' character instead of '.' in the folder names and use the "*_*_*_*" pattern to search for the needed folders.

--
Dmitry Nikolaev
Customer Care Manager
TestComplete, QAComplete

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:
6 / 7 API Testing Mistakes Video
Top Kudoed Authors