how to use a string from one module to other module
Posted: Mon Nov 02, 2015 3:29 pm
Hi,
Am using user code module with repositories and in my test suite i have five test cases and each test case has one user code module
Am using a string ts as timestamp for a filename of the txt file(which contains time taken to execute the certain step in my application) and i want to use the same string in the other code module as the same timestamp. How is it possible.
String ts= System.DateTime.Now.ToString("ddMMyyyyhhmmss");
System.IO.File.AppendAllText(@"C:\\save\\"+ts+.txt"+"DateTime: ",dt+Environment.NewLine+"TestCase: "+TestCase.Current.Name+Environment.NewLine+"Duration: "+s+Environment.NewLine);
Thank you.
Am using user code module with repositories and in my test suite i have five test cases and each test case has one user code module
Am using a string ts as timestamp for a filename of the txt file(which contains time taken to execute the certain step in my application) and i want to use the same string in the other code module as the same timestamp. How is it possible.
String ts= System.DateTime.Now.ToString("ddMMyyyyhhmmss");
System.IO.File.AppendAllText(@"C:\\save\\"+ts+.txt"+"DateTime: ",dt+Environment.NewLine+"TestCase: "+TestCase.Current.Name+Environment.NewLine+"Duration: "+s+Environment.NewLine);
Thank you.