Telerik Forums
Test Studio Forum
6 answers
223 views

Hi
In the application i have to test has a dialog popup right after login if the user already as a session open. before the dialog is not expected every time, the step will fail if the element is not found,
is there a way ignore the step? I already have it set to continue on fail, but the report will report the failure,
I have tried to verify the element to control an IF else steps, but that fails if the popup does not "pop"

Please point me in the right direction

Thank You
Chris


ArtOfTest.Common.Design.Exceptions.ElementFindException: Unable to locate element. Details: Attempting to find [Html] element using
Find logic
 (Html): [tagname 'Exact' h3] AND [TextContent 'Exact' Login Conflict]

Unable to locate element. Search failed!

   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

Anthony
Telerik team
 answered on 30 Sep 2011
18 answers
373 views
I added a test settings file to my project, and believe I have set it up correctly however when I try to run tests from VS2010, I get the following error:

Error 9/20/2011 8:43:41 AM Failed to queue test run 'Jamie@API8406 2011-09-20 08:43:40': Unable to find assembly 'ArtOfTest.WebAiiVSIP, Version=2011.1.502.0, Culture=neutral, PublicKeyToken=14176981d1873d86'. API8406


Another associate of mine is able to run tests from his machine through VS2010 against the Agents successfully, but we cannot figure out what is different between our machines.  What am I missing to be able to run my tests against the controller/agent system?

What is ArtOfTest.WebAiiVSIP?

We are currently using the licensed version of v2.0.50727/2011.1.502.0.
Cody
Telerik team
 answered on 29 Sep 2011
2 answers
225 views
Performance Run files have a .tsperf file extension. How to open it?

I want to save and open test results for my boss. Can I create something like web-page or xls file to save my results?
Alex
Top achievements
Rank 1
 answered on 29 Sep 2011
2 answers
187 views
You can see my tabs in application in attached file. In user guide there is "Performance" tab between "Record" and "Test lists". What should I do to enable it?
(I use trial version)
Alex
Top achievements
Rank 1
 answered on 29 Sep 2011
4 answers
136 views
Hello,

I have been able to successfully execute tests in IE 7, however when I attempt to execute the same test in Chrome v14.0, the test fails on either clicking a hyperlink or verifying text.  I have completed the browser configuration instructions...are there any other suggestions or minor nuances I should check?

Thanks much!
Alan
Alan
Top achievements
Rank 2
 answered on 28 Sep 2011
7 answers
434 views
Hello,

I have a website with a frameset and nested iframes.
Please read the code to see where the problem occurs.

// Launch a browser instance
  Manager.LaunchNewBrowser(BrowserType.InternetExplorer);
  Manager.Current.ActiveBrowser.ClearCache(BrowserCacheType.TempFilesCache);
 
  // The active browser
  ActiveBrowser.NavigateTo("http://anydomain.com");
 
  // Find the google search box and set it to "Telerik";
  Find.ByName<HtmlInputText>("ctrlLogin$txtUser").Text = "user";
 
  // Click the Search button
  var loginButton = Find.ByExpression<HtmlSpan>(new HtmlFindExpression("TextContent=~Login", "class=Button_Text"));
  loginButton.Click();
   
  ActiveBrowser.WaitUntilReady();
 
  var mainFrame = ActiveBrowser.Frames["frMain"];
  //mainFrame.RefreshDomTree();
 
  //workFrame is found, workFrame is an iFrame
  var workFrame = mainFrame.WaitForElement(5000, "id=WorkFrame");
  
---- PROBLEM STARTS HERE ---
 
  // form is null here
  var form = new HtmlControl(workFrame).Find.ById<HtmlForm>("MyStart");
 
  var td = form.Find.ByAttributes<HtmlTableCell>("class=login_value");
  var loginName = td.InnerText;

How can I wait for the Iframe to finish loading? At the moment I cannot find the tags I am searching for.

Any ideas?

Thank you for your help!
Gerald
Top achievements
Rank 1
 answered on 28 Sep 2011
1 answer
127 views
i have a silverlight application that uses Telerik controls. one dialog has couple text boxes of the following type:
telerik:RadTabControl Grid

                            <TextBox Grid.Column="1" Grid.Row="0" Width="200" Margin="2,2,20,2" Text="{Binding EditConcept.BusinessEntityName, Mode=TwoWay, ValidatesOnNotifyDataErrors=True, ValidatesOnExceptions=true, NotifyOnValidationError=True}" >



when i try to record in test studio the control is not found on playback. does the developer need to add more details for this control to be found?

I am new to this environment. using windows 7 and IE.
Stoich
Telerik team
 answered on 27 Sep 2011
1 answer
84 views
I have the trial version of Telerik Test Studio, and I am trying to link to a hosted trial of TeamPulse.  When I enter the hosted url and click connect, it never connects, nor does it display an error message.  It just has a loading icon.  Does anyone know how to get this to work? 
Stoich
Telerik team
 answered on 27 Sep 2011
3 answers
223 views
Hi,

We are using licensed Telerik TestStudio to test a dotnet application. We are facing issues in identyfing the elements on IFrame.
Scenario is like this:

Hit the url of the application a web page is displayed. Suppose there is a link-create new and on clicking create new a popup opens in the Iframe. Now in that Iframe there are two buttons - Run and Save. On clicking Save the UI changes in that Iframe. There is a text box in which we can specify the name. After that we click on Save button. Then a message is displayed - Saved successfully. After that we click on X mark on the top of the Iframe to close it.

When we tried to capture these operations through Telerik, it is showing Click 'Div' for all the three operations. These three have same set of properties. We tried to locate through Find Element too but it was not locating the right  element on that IFrame.
Kindly look into it and let me know how can we identify the elements using these set of properties.

Thanks,
Nitin
Anthony
Telerik team
 answered on 26 Sep 2011
2 answers
204 views
Hi,
I am getting following Exception while execution test as step on execution server. Note : It works fine on local machine...

'9/22/2011 4:42:04 PM' - 'Pass' : 4. Wait for '2000' msec.
'9/22/2011 4:42:04 PM' - 'Fail' : 5. Execute test 'ADD_AP_PaymentTerm'

>>> Test-as-Step 'AP\DATA\Add AP Payment Term\ADD_AP_PaymentTerm.tstest' log starts:

------------------------------------------------------------
'9/22/2011 4:42:04 PM' - Detected custom code in test. Locating test assembly: Automation.dll.
------------------------------------------------------------
'9/22/2011 4:42:04 PM' - Error attempting to execute a Test As Step. Details:
'9/22/2011 4:42:04 PM' - System.BadImageFormatException: This assembly is built by a runtime newer than the currently loaded runtime and cannot be loaded. (Exception from HRESULT: 0x8013101B)
   at System.Reflection.Assembly.nLoadFile(String path, Evidence evidence)
   at System.Reflection.Assembly.LoadFile(String path)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTestInCurrentContext(Test test)

<<< Test-as-Step 'AP\DATA\Add AP Payment Term\ADD_AP_PaymentTerm.tstest' log ends.

------------------------------------------------------------
'9/22/2011 4:42:04 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
------------------------------------------------------------
sonal
Top achievements
Rank 1
 answered on 26 Sep 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Rakhee
Top achievements
Rank 1
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?