Hi Telerik,
I have been trying to figure out a way to create automated tests for our application that uses a gojs html 5 canvas. I have noticed two ways so far:
1. Click on specific points (ActiveBrowser.Desktop.Mouse.Click(MouseClickType.LeftClick, 930, 405);). This seems to work provided that the browser always opens in full screen and that the elements in the canvas never change meaning that the tests might become obsolete so I don't believe it being the best approach.
2. There seems to be an HtmlCanvas class that I can't seem to find much information or examples on. I have tried the following:
HtmlCanvas canvas = Find.AllByTagName.FirstOrDefault(w => w.TagName ==
"canvas"
);
var brandNode = canvas.ChildNodes.FirstOrDefault(w => w.TextContent ==
"Brand"
);
HtmlDiv div = brandNode;
div.Click();
This code gives me the following errors:
- 'ArtOfTest.WebAii.Core.Find.AllByTagName(string)' is a 'method', which is not valid in the given context
- Cannot implicitly convert type 'ArtOfTest.WebAii.ObjectModel.Element' to 'ArtOfTest.WebAii.Controls.HtmlControls.HtmlDiv'
Is my approach maybe wrong? What is the best way to resolve this? Where can I get more information regarding accessing the canvas on a browser to generate automated tests?
Thanks in advance
During Test recording, I paused the record highlighted an element->Add Element ->Save Element as a result, Telerik becames not responding the element is not added to repository
Please advice
We're trying Test Studio to see if it fits our needs, and I'm wondering if it's possible to start tests automatically when new build is deployed in TFS, for example.
What would be the best way to do this?
Hello,
I am facing issue in configuring WPF application path, as i clicked on "Record" a pop up to configure the application appeared and after selecting th current running WPF application i clicked on "Select Application" a message is appearing saying that "this is not a valid WPF application to load" .
Please help
Thanks
Deepesh
Hi Team,
My requirement is that i want to skip an iteration if an expected data is found in a row
for example my data table looks like
Flag Username Password
Red red_ted 123
Blue blue_glue 123
Yellow yellow_glow 123
if (Data["Flag"] == "Blue")
{
<Skip Iteration logic>
}
Expected Result is current iteration should be skipped and move to next iteration i.e., row of "Yellow". Please advise how to achieve this
Hi,
I've encountered the problem with mobile test studio. Is there a way how to simulate real typing for mobile web testing ? Because as for now when i TAP a text field for password on connected Android Device a start typing it will make a test step action "SetValue". Because of that i am not able to log in a page because it's saying that the text field is required. But after manually taping the text field and type using the android keyboard i can log in as usual.
Hi Team,
How can I retrieve the URL of a hyperlink on a application ? Can this be achieved by Telerik test Studio ? if yes, how ?
Attached the screenshot for reference
Thanks
Abdul
I've performed a lot of searching/reading, and cannot find a solution to my problem. First off, I'm far from a coding expert. I currently have a custom coded step to connect to SQL Server, run a Query (select/join/etc.), and print the result to the log. This works:
SqlConnection thisConnection = <connection string)>
thisConnection.Open();
Log.WriteLine(thisConnection.Database);
SqlCommand thisCommand = thisConnection.CreateCommand();
thisCommand.CommandText = <SQL query>
SqlDataReader thisReader = thisCommand.ExecuteReader();
while (thisReader.Read())
{
Log.WriteLine("BarcodeId: " + (String) thisReader["BarcodeId"]);
}
thisReader.Close();
thisConnection.Close();
The result from above writes my expected result to the log. Now, I want to use this result to data bind a test input box further down in the script. I've tried playing with set/getextracted values, etc. I know how to do this if extracting an HTML TextContent into a DataBindVariable, but unsure how to do the same with a result from SQL query (coded database step). Thanks in advance.
Hello
Had posted this earlier in the Telerik framework discussion, guess this is the right place!
I am trying to create a multilevel test for entering 100 records in a Client profile table through 5 different pages called in a specific order (each having some 30-40 fields).
Scenario (created a driver script for this) -
1. Login and initialize application
2. Call Test A (parent test - data bound to 100 records in excel)
3. Logout
Steps in Test A
1. Enter data in Page1 and continue to Pg2(Test B1)
2. Enter data in Page2 and continue to Pg3(Test B2)
3. Enter data in Page3 and continue to Pg4(Test B3)
4. Enter data in Page4 and continue to Pg5(Test B4)
5. Enter data in Page5 and save record(Test B5)
6. Navigate back to Page 1 for next iteration
My issue is:
1. Data for Test B1, B2 .. B5 are in 5 different sheets in excel. And I can bind the parent TestA to only one sheet at a time. So I consolidated all of them into one sheet. Is there any other better solution to this?
2. InheritParentDatasource set to True for Tests B1 to B5. Even after binding all the variable manually in the child tests, they are not taking the values from the parent table when the test is run
eg- Enter text in "ClientProfilePersonNameBirthNameTest" - DataDriven : [$(BirthName)] is shown when I bind the step in Test B1 to the BirthName variable coming from TestA but it doesn't actually enter that value during runtime. Iteration#1 line in runtime log shows the value in this variable so its available to Test B1
Can anyone tell what the issue might be?
Thanks
Hi Team,
I'm looking for a way to count my Local Data rows (or columns) and perform a specific function if a particular row is hit. The idea is something like the attached image.
I can't seem to find any resources in the net for this. I'm just being introduced to Telerik so i'm learning as it goes and i'm really hoping you guys can help to give some pointers on this question.
Many many thanks in advance :)
Thanks,
Regards,
Pravin
praja@dongenergy.dk