Hello,
I'm a developer on a web-based application that has the following requirements for a load test:
1) Log in as one of 100 preset users
2) Navigate to a dynamic URL based on values in a table in a database
2) Process at that URL
Among other things. However, I'm struggling with retrieving the data from the database and also creating that URL. The URL is of the format /Site/Controller/Function/ID, the same as almost any MVC application, but I see no place where I can choose a datasource for the original URL (e.g., http://mysite.com/site/case/edit/190723). Further uses find the dynamic target correctly, but I need to change that original ID in the first request after login. The ID is normally selected via a Telerik grid, but I also can't figure out how to get the link from the grid either.
I'm also struggling with the lack of multiple data sources. At this point, I feel as though I have to merge my two data sets (users and data values) and query from that. However, I have concerns about multiple VU's overwriting each other, which isn't a true test, and leads me to my next question:
Assuming that I use a database-driven test, when is that query executed? Every time a new VR is created? When the test first runs and never again? Every time a variable is retrieved?
Thank you for your assistance with this.
Hi guys, I dont quite understand the problem below.
I has a hyperlink element in HTML like this (telerik calls HTMLAnchor).
<a href="#" id="btnSubmit" >Submit</a>
Now, what I all need that I want to find the <a> element by using HTMLAnchor, then click on it.
Here is my vb code in my Telerik script
~~~~~
Dim btnSubmit As ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor
Dim alertDialog__1 As AlertDialog = AlertDialog.CreateAlertDialog(ActiveBrowser, DialogButton.OK)
alertDialog__1.HandlerDelegate = New DialogHandlerDelegate(AddressOf MyCustomAlertHandler)
Manager.DialogMonitor.AddDialog(alertDialog__1)
ActiveBrowser.Window.SetFocus
ActiveBrowser.RefreshDomTree
btnSubmit=Manager.ActiveBrowser.Find.ById("btnSubmit")
Assert.IsNotNull(btnSubmit,"Cannot find the Submit button")
btnSubmit.Click
alertDialog__1.WaitUntilHandled(50000)
~~~~~
BUT, the problem is that btnSubmit is NULL. Look like it can not find the element
Log file:
Value of type 'ArtOfTest.WebAii.ObjectModel.Element' cannot be converted to 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlAnchor'.
Any suggestion for me, guys.
Thanks
Hi all,
I am trying to execute using "settings" option in ArtofTest.Runner commandline.
I followed the steps as mentioned in http://docs.telerik.com/teststudio/testing-framework/write-tests-in-code/intermediate-topics-wtc/settings-and-configuration-wtc/app-config-file
I created a xml file, renamed it as test.dll.config and executed through commandline.I am getting one error
"Load project: The settings file is missing in the 'C:\SmokeTest\bin' Please set the root path.
1) Am i doing something wrong here?
2) Do i need to add Manager mgr = new Manager(true); somewhere in code? If so where should i call? The first part which gets initialized?
3) Do i need to use settings.aiis also along with this xml?
Kindly let me know.
Thanks,
VVP
Hi,
We are planning to execute scripts via commandline (ArtOfTest.Runner.exe). Hence we needed to know generation of log files .
I saw there is an option for exporting results /excel /html/trx in UI. Anything similar in commandline.?
I saw this http://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/external-log-file
I have 2 questions regarding article on above link.
1) Do we have to include the function in each and every test script file.? Or is it ok to put as common function and call?
2) How can i pass Test Result from a script to a common function.
Thanks,
VVP
Hello,
So I have an web application that has a page that uses Silverlight.
In my test, I navigate to this page that has the silverlight in it.
I want to know if there is a way to detect if the silverlight section of the page has fully loaded.
I would prefer not to use an Execution Delay.
When executing the Telerik Test Studio Runtime 2015.2 install package, I receive the following error:
You must have Administrative rights on this machine to install Telerik Test Studio Runtime. Setup will now exit.
My domain user account is a member of the local machine administrators group. I created a local administrator account and the install fails the Microsoft SQL Server 2008 R2 install process.
This is the only software package that does not correctly detect my domain user as part of the local administrators group.
Thanks,
Randy Erickson