Hi,
I would like to ask about the feature SimulateRealTyping. I have used it in some of my test cases and i found out that there is some effect when I'm not using it and when i am using it. When i am not using it, while executing the scripts, the auto-fill function in my application under test did not worked and it works after i use the Simulate Real Typing function.
1. May I know when and what kind of scenario should I use this function? What is your recommendation?
2. And If I were to use this function, what is the impact and risk of using it ? Such as maybe it will affect execution time and etc. ?
Hoping to hear from you soon.
Thank you.
Hello,
Here is what I am trying to accomplish.
In my web AUT, I am creating a service ticket which is Data driven and has say 2 rows ( Right now just using the local data instead of external). Once my service ticket is created, I am asserting the text content in the grid using the verification step. After this I would like validate if the record is present in the DB. I am successfully able to connect to my SQL DB from test studio (Found a code sample in your forum which is great). Basically my query is to retrieve the service ticket by running a select statement and comparing this against the UI element. How do I do this using a coded step? I need to able able retrive the rows from my test and use that in my query and run a compare between the two?
Thanks!

Hello,
I am working through creating load tests. For one of my applications, I recorded through fiddler and loaded into test studio.
The response sets a cookie, which was recorded, to expire after 1 hour.
When I go to run the test anytime after an hour I get unauthorized because the cookie expired.
Does anyone have a recommended approach on this? Maybe how to clear cookies before a load test execution?

// Click on GeotechOrangeRadiobutton if(Data["Geotech (Orange)"].ToString()=="True") Applications.UIWPFexe.AddAlarmPopup.GeotechOrangeRadiobutton.Check(true); else { Log.WriteLine("Geotech (Orange) is False"); }}
Hi. I am wondering if there is a limit to the UseStepWaitOnElementsTimeout?
I am trying to wait for a text content while importing a file.The attached image is the recorded steps.
Normally this file import will take less than 30 mins but I do not want to delay execution for a fixed duration.
What I am trying to do here is that I want to wait until text content "Completed with skipped records" appears then proceed with further verification.
But it seems like Test Studio did not wait for timeout until 1,800,000ms. Another attached image is the execution log.
Do I use WaitOnElements correctly in this case?
Hi,
Has anyone come across this issue and if so, have a solution?
I have an excel spreadsheet containing rows of currency data, when I bind said spreadsheet to a test and then set a variable (column from the spreadsheet) to use in a verification step, I then check the values being pulled back in the binding pop up. It is stripping out the comma from the values of => 1,000. My verification step then fails when I run the test as the webpage is supplying the string of 'Total = £1,389.39' and the expected value is set to contain '1389.39'. Any idea how to stop Test Studio pulling out the wrongly formatted value from excel for the expected string? Excel has the value set in the cell to 1,389.39 so why isn't Test Studio pulling this value out? If it did, then the test would correctly pass!
Thanks in advance for any help/insights.
Kerry

Hello,
I have setup smtp email configuration on schedule server and selected option to send email while scheduling test execution.
Test executes just fine but not receiving email. Email smtp config and log file attached.
I also need to send test results via email when test is run through .bat file
my bat file
Title Test Runner
IF EXIST "C:\Program Files (x86)\Progress\Test Studio\Bin" goto :a
echo not found
pause
exit
:a
setlocal
path=C:\Program Files (x86)\Telerik\Test Studio\Bin;%path%
call ArtOfTest.Runner.exe list="C:\..\TestLists\Remote Execution Test.aiilist" serverPublish=true notifyOption=1 mails=myemail@abc.org
Thanks
-
Padmashree
Perhaps. We will see.
I see many questions about parameterization when running test lists on the forums and they all answer one thing: "BaseURL". But I want to parameterize on several other criteria. Can I? I cannot see a way to do it. Always the answer seems to be that we should use BaseURL. We have 3 custom properties in a Test. But how many in Test List? None.
So, what to do?
Well, Telerik is telling us to use the BaseURL.
A solution is this, I use one test step for all my logins. I need to connect to http://foobar.com
My tests have:
BaseURL = "http://foobar.com"
and my test lists have this and I now have three custom settings in my Test List, or however many I want.
BaseURL = "http://foobar.com/ray_x=thing1,ray_y=thing2,ray_z=whatever".
And now, with the code below, I see this in my log when I am running from the test:
'9/9/2019 4:02:24 PM' - Using 'https://foobar.com' as base url.
'9/9/2019 4:02:24 PM' - LOG: p size = 3
'9/9/2019 4:02:24 PM' - LOG: p[0]: "https:"
'9/9/2019 4:02:24 PM' - LOG: p[1]: ""
'9/9/2019 4:02:24 PM' - LOG: p[2]: "foobar.com"
'9/9/2019 4:02:24 PM' - LOG: q size = 1
'9/9/2019 4:02:24 PM' - LOG: realUrl: "https://foobar.com"
'9/9/2019 4:02:24 PM' - LOG: paramstr: ""
And I see this in my log when I am running from my test list:
'9/9/2019 4:01:48 PM' - Using 'http://foobar.com/ray_x=thing1,ray_y=thing2,ray_z=whatever' as base url.
'9/9/2019 4:01:48 PM' - LOG: p size = 3
'9/9/2019 4:01:48 PM' - LOG: p[0]: "http:"
'9/9/2019 4:01:48 PM' - LOG: p[1]: ""
'9/9/2019 4:01:48 PM' - LOG: p[2]: "foobar.com/ray_x=100,ray_y=200"
'9/9/2019 4:01:48 PM' - LOG: q size = 2
'9/9/2019 4:01:48 PM' - LOG: realUrl: "https://foobar.com"
'9/9/2019 4:01:48 PM' - LOG: paramstr: "ray_x=thing1,ray_y=thing2,ray_z=whatever"
And the test and the test list work the same.
If I have paramStr, I split it up by commas and I am done.
And I used the BaseURL and nothing else. :--)
cheers - ray
[CodedStep(@"Navigate to : 'http://foobar.com'")]
public void MinimalLogin_CodedStep1()
{
String baseUrl = ActiveBrowser.Manager.Settings.Web.BaseUrl.ToString();
String[] sep = { "/" };
String[] p = baseUrl.Split(sep, 3, StringSplitOptions.None);
Log.WriteLine("p size = " + p.Length);
Log.WriteLine("p[0]: \"" + p[0] + "\"");
Log.WriteLine("p[1]: \"" + p[1] + "\"");
Log.WriteLine("p[2]: \"" + p[2] + "\"");
String[] q = p[2].Split(sep, 2, StringSplitOptions.None);
Log.WriteLine("q size = " + q.Length);
String realUrl;
String paramStr;
if (q.Length == 1) {
realUrl = p[0] + "//" + p[2];
paramStr = "";
}
else {
realUrl = p[0] + "//" + q[0];
paramStr = q[1];
}
Log.WriteLine("realUrl: \"" + realUrl + "\"");
Log.WriteLine("paramstr: \"" + paramStr + "\"");
ActiveBrowser.NavigateTo(realUrl + "admin.cgi", true);
}
}
ps:So, why do I need to do the split twice? If I knew the insides of th URL structure, I would know. But it works. Done and done.
Hello
I'm trying to call a test from another test in Mobile Test Studio. The only indicated way is through a coded step. Below is the code inside the test method. The test returns a -1 exit code.
I have called the separate test from the command line directly so know it's possible to call a test, but not sure if this is capable in Mobile Test Studio.
//Code Start
// initialize new system process
Process runFooTest = new Process();
// define the process name to be started
runFooTest.StartInfo.FileName = @"C:\Program Files (x86)\Progress\Test Studio\Bin\MobileStudio\Telerik.MobileTesting.Runner.exe";
// set the arguments
runFooTest.StartInfo.Arguments = @"/msgServer=ws://localhost:8083 /project=C:\MobileAutomation\Mobile /test=Successful_Connection_iOS_App";
// run the process
runFooTest.Start();
// wait until the test return an exit code
runFooTest.WaitForExit();
// get the exit code from the executed process
int exitCode = runFooTest.ExitCode;
//Log.WriteLine(exitCode.ToString());
// check if this test step pass or fail. If return 0 - process complete normally, else - process fould.
Assert.AreEqual(exitCode, 0);
