Forum Discussion
4 Replies
Sort By
- YMinaevStaffHi,
You can extract the file name from the path by using the aqFileSystem.GetFileName method. After that, remove the file extension from the resulting string. You can do this, for example, using regular expressions or just by cutting off the last 4 characters. See the "aqFileSystem.GetFileName" and "Working With Strings" help topics. - MadhiContributor
path = Project.FileName
x = aqFileSystem.GetFileName(path)
length = aqString.GetLength(x)
xfilename = aqString.Remove(x,length-4,4)
Did work for me..
thanks.. - YMinaevStaffHi,
Is there a way to store the unit name
There's no way to obtain unit names....projectname...
You can use the Project.FileName property.to get the status of the run result, start and end time
You need to work with logs from scripts. See the "Scripting Access to the Test Log Contents" help topic. - MadhiContributorproject.filename gives us the whole path.. is there any function to give us just the projectname
ex. c:\documents\testcomplete7projects\project1.mds... is the result for project.filename.. I need the result to be just project1
Related Content
- 4 years agotammyjo9
- 4 years agoKathleenKelley
- 5 years ago678
Recent Discussions
- 3 days agovladd1