hlalumiere
13 years agoRegular Contributor
TestComplete/TestExecute log folder subfolder creation woe...
When you run a test item, and call Log.SaveResultsAs with 1 as the format argument (for unpacked HTML), TC creates subfolders within the log path for each subitem. I would like to know why doing so TC strips a lot of perfectly legal characters from the file and folder names. It seems to strip all accents, spaces, dots, and other legal chars. Also if you have a subitem that only contains numbers as its name (for example "1.0.0.1"), TC strips ALL of it, and instead names it "Item" (and appends _1, _2, etc if there are many subitems like this...)
For example, if I have a test item with subitems called:
- "Création"
- "1.0.0.0"
- "1.0.0.1"
- "Test à terminer"
All of those are legal file and folder names, yet the resulting subfolders will be:
- "Cration"
- "Item"
- "Item_1"
- "Testterminer"
This is not a gamebreaking issue, but it is extremely annoying, and completely unneeded. It makes browsing log folders a pain, and the folder names are mostly unpredictable.
In the case of the numbered test items, if the test name starts with a letter instead (for example "T1.0.0.1", the resulting folder name is "T1001". So why does it keep the numbers here, but strips them if there is no letter?
This is under TestComplete 8.2, but I tested it in 9.10 and there is no change in this behavior.
For example, if I have a test item with subitems called:
- "Création"
- "1.0.0.0"
- "1.0.0.1"
- "Test à terminer"
All of those are legal file and folder names, yet the resulting subfolders will be:
- "Cration"
- "Item"
- "Item_1"
- "Testterminer"
This is not a gamebreaking issue, but it is extremely annoying, and completely unneeded. It makes browsing log folders a pain, and the folder names are mostly unpredictable.
In the case of the numbered test items, if the test name starts with a letter instead (for example "T1.0.0.1", the resulting folder name is "T1001". So why does it keep the numbers here, but strips them if there is no letter?
This is under TestComplete 8.2, but I tested it in 9.10 and there is no change in this behavior.