Forum Discussion
AlexanderM
Staff
14 years agoHi Rashi,
See the aqFileSystem.CreateFolder help topic to learn how to handle this. To post a warning, use the Log.Warning method. To call these methods in a keyword test, use the Call Object Method operation. To randomize the folder name, you can use random number generator. To do it, when specifying the value of the Path parameter in the Call Object Method dialog, set Mode to Code Expression and specify, for example, "C:\\FolderName" + Math.floor(10000*Math.random()), if the language of your project is JScript - this code will concatenate "FolderName" with a random number from 0 to 10000.
See the aqFileSystem.CreateFolder help topic to learn how to handle this. To post a warning, use the Log.Warning method. To call these methods in a keyword test, use the Call Object Method operation. To randomize the folder name, you can use random number generator. To do it, when specifying the value of the Path parameter in the Call Object Method dialog, set Mode to Code Expression and specify, for example, "C:\\FolderName" + Math.floor(10000*Math.random()), if the language of your project is JScript - this code will concatenate "FolderName" with a random number from 0 to 10000.