public class RandomDataGenerator extends Object
Constructor and Description |
---|
RandomDataGenerator() |
Modifier and Type | Method and Description |
---|---|
static String |
generateFileNameWithDateTimeStamp(String fileNameWithExtension)
Generate file name with date time stamp.
|
static String |
generateFileNameWithDateTimeStampAndPath(String filePath,
String fileNameWithExtension)
Generate file name with date time stamp and path.
|
public static String generateFileNameWithDateTimeStamp(String fileNameWithExtension) throws Exception
fileNameWithExtension
- the file name with extension. Ex:"sample.docx"Exception
- the exceptionpublic static String generateFileNameWithDateTimeStampAndPath(String filePath, String fileNameWithExtension) throws Exception
filePath
- the file path. Ex:"D:\\workspace\\BTAC_SeleniumAppiumLibrary\\testdata\\"fileNameWithExtension
- the file name with extension. Ex:"sample.docx"Exception
- the exception