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);

Since updating to the newest version, my IF statements are now failing. I need to check the state of an application in a table and the table cells ID changes according to the current state the application is in. As a result I am using an If/Else statement such as "IF(Wait for Exists 'exampleCell0')" {steps if true} "ELSE" {steps if false}. Before this worked fine; when the cell had the same ID as I was looking for it would execute my IF steps and if it did not have the same ID it would execute my else Statement. Now I get this
'9/4/2019 10:04:02 AM' - 'Pass' : 7. Click 'SearchButtonTag'
'9/4/2019 10:04:04 AM' - 'Pass' : 8. Wait for '1500' msec.
'9/4/2019 10:04:34 AM' - 'Fail' : 9. IF (Wait for Exists 'ExampleCell0')
'9/4/2019 10:04:34 AM' - Unable to determine logical branch to go into. Unable to execute verification.
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Object reference not set to an instance of an object.
InnerException:
System.NullReferenceException: Object reference not set to an instance of an object.
at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ExistsVerificationDescriptor.PerformWait(IAutomationHost host)
at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'9/4/2019 10:04:34 AM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
'9/4/2019 10:04:34 AM' - Overall Result: Fail
'9/4/2019 10:04:34 AM' - Duration: [1 min: 6 sec: 121 msec]
------------------------------------------------------------
<<< Test-as-Step 'Example Tests\Misc Tests\Review Steps\OpenRecentApplicant.tstest' log ends.
I know this is not an issue with my environment as I was able to successfully run this test on another machine running 2019.2.619 using all of the same parameters after I failed on the latest update.



How can I change the size of the element selector? (check the picture) I can't seem to click and drag it, and I'd like to see more than two or three options.
Also, is there a way to turn of the element image snapshot by default?

Good Afternoon,
I've downloaded offline installer "TestStudio_Ultimate_2019_2_0619_1_Trial.msi" and chose "Customize", disabled all VS Extensions ("Will Not Be Installed"), and ran the installer. Noticed that the VS Extensions were loaded anyway (VS 2017 is on my machine).
This is more of a heads-up and to confirm that this is a bug. Please advise.
Best Regards,
Carl Eric McMillin

Good Morning,
I'm helping a coworker with setting up Test Studio Ultimate Perpetual in an run-time environment that is VERY constrained. Even as local administrator on his laptop we have limited-to-no authority to change some of the settings listed as mandatory (https://docs.telerik.com/devtools/teststudiodev/prerequisites/calibrate-browsers). Are there workaround(s) per-setting that might get around the following issues?
The behavior we see is that after a) installing the application as admin, b) starting the application as admin and loading the project from the "Get Started->Start With Sample Project" we can neither execute tests to Internet Explorer v11 ("about:blank" always shows, never navigates to URL) nor record tests ("Connecting recorder" times out and gives error "Unable to connect Recorder. Recording will not function..."). We have logging enabled and I can provide that if it would help.
Also, the "Test Studio Test Runner" application seems to misreport the version of IE (self-reports 11.885.17134.0) as 9.11.17134.0. It also does not report a version for Chrome at all. Please refer to attached image "TSRVersions.jpg".
Thanks in Advance,
Carl Eric McMillin

