Telerik Forums
Test Studio Forum
8 answers
205 views
Hi Telerik Team,

I have the following issue when playing back my script.

 I open a pop up window from my parent window and  select some options from a drop down and click a button on the pop up window which close the pop up window. I cannot playback the step as it fails. I have a couple of steps like this in my test and all of them fail.

If I instruct my test to stop running just before the step where I have to open a pop up window and then continue to run my test from the next step the playback works.

Do I have to give a delay ? Please help.

Regards,

Vaishali


Boyan Boev
Telerik team
 answered on 15 Jan 2014
1 answer
120 views
I have used the Version of Telerik Telerik.TestStudio.2013.1.1120_Purchase and builded a test where i verificated the Check Box property "state".
Now I have updated my Telerik to Version TestStudio_Ultimate_2013_2_1210_Trial and there my test does not work correctly anymore. The checkboxes have now in this Version no property like "state" anymore. So I cannot verificate the checkboxes anymore. I have tried to do a work around but have not found a solution.
  
Please help me

Greatings Christian

Velin Koychev
Telerik team
 answered on 15 Jan 2014
10 answers
140 views
After upgrading our build machiines to 2013.1.806.0, I'm seeing this issue when trying to build:

C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets (1578): The primary reference "ArtOfTest.WebAii.Design, Version=2013.1.806.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the framework assembly "System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which could not be resolved in the currently targeted framework. ".NETFramework,Version=v4.0". To resolve this problem, either remove the reference "ArtOfTest.WebAii.Design, Version=2013.1.806.0, Culture=neutral, PublicKeyToken=4fc62bbc3827ab1d, processorArchitecture=MSIL" or retarget your application to a framework version which contains "System.Net.Http, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".

Any ideas?
Velin Koychev
Telerik team
 answered on 14 Jan 2014
5 answers
265 views
Hi,

I'm using Telerik Test Studio version: 2012.2.1527.0. I start recording using the webtest and navigate to the URL. This is not getting recorded as a step.

There is a login page. As I start typing my user Id, this is now getting recorded. Everything from this point is getting recorded (except any URL changes). Since the initial navigation is not getting recorded, the test fails in the very first step when I run it.


Error Information

Error: Wait for condition has timed outInnerException:System.Exception: Unable to find the target host (Browser/SilverlightApp) to locate an element. Failure: Waiting for frame '[Frame:id=credentials,name=Frame_1,src=https://<URL>,UseQuery:False]' timed out. Error: Wait for condition has timed out at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.WaitForAllElements(IAutomationHost host, AutomationDescriptor descriptor, Int32 timeout) at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)



However, it works fine for my colleagues (navigation to the URL is getting recorded as the first step), who have the same user rights to the machine as mine. We all use the same OS and followed same steps. The only setting we all did is calibrating the browser. Everything else is default settings.

I found similar issue being reported here before. But that says OS is a non-english one as the cause. This is not the case for me.

I tried adding manual step for navigation to the URL. It did not work. Can you please help ASAP or give me a work around please. Thanks.

Cheers,
Amar.
Boyan Boev
Telerik team
 answered on 13 Jan 2014
3 answers
106 views
Hi,
     I have recorded form filling in my application, which has fileds like "Name, Phone number, etc,...."  when recording i i entered "sujith" in name field and "(098) 765 4321" in phone number field and click save button, gets saved. stopped the recording.

Then i have edited Name as "John" and phone number as "(123) 456 7890" in the recorded steps, saved and play-backed the steps.
But test studio not enters the name and phone number which i have edited. it entering only the values which i have entered during recording as ""sujith" in name field and "(098) 765 4321" in phone number field".
Velin Koychev
Telerik team
 answered on 13 Jan 2014
1 answer
122 views
I want to extract the text content from the comment step and want to write it in excel file. How can I do that?
Boyan Boev
Telerik team
 answered on 13 Jan 2014
1 answer
94 views
Hi,

After creating a couple of scripts with coded steps, which use a custom library file and testing them individually, we get an error for one of the scripts when putting it in a TestList.

'1/8/2014 11:31:32 AM' - 'Fail' : 10. [Toelichting_CodedStep] : Rename PDF
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[Toelichting_CodedStep] : Rename PDF'.
InnerException:
System.IO.FileNotFoundException: Could not load file or assembly 'TestLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
File name: 'TestLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
   at ABN_AMRO_Internet.Toelichting.Toelichting_CodedStep()
 
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].

The library is also used in a different script, which does succeed in the same TestList.

I already tried to remove the .cs file and create the coded steps once again, but this wasn't a solution.

Hopefully someone can point us in the right direction!

Thanks in advance
Boyan Boev
Telerik team
 answered on 13 Jan 2014
2 answers
113 views
Hello,

I'm looking for solutions or ideas about scheduling and executing older versions of tests.
We keep our tests in TFS so when we start a new sprint we could also make a branch of our tests.
For example we have application X version 1 in production. Last sprint we worked on version 1.1 but it still needs acceptance by the business and maybe minor fixes. This sprint we work on version 1.2 we have some changes on the application and we want to modify our tests for those changes. However I still want to execute the older tests on application version 1.1.

How can i schedule and execute this?
Is the only solution to create a branch of our tests and then schedule these?
I think this would be big manual operation and I would need dedicated execution servers for a version (?)

Kind regards,
Norbert
Velin Koychev
Telerik team
 answered on 13 Jan 2014
3 answers
86 views
Hi,

Following is the test case captured in version 2013.1.1120.0


Same test case when I customize Code it fails.
[CodedStep(@"Verify Item0Customtextbox0.IsEnabled 'Equal' 'False'", RequiresSilverlight = true)]
public void DatalogPreferencePage_Functionality_CodedStep15()
{
    // Verify Item0Customtextbox0.IsEnabled 'Equal' 'False'
    Assert.AreEqual(false, Pages.PC5xxLogin.SilverlightApp.Item0Customtextbox0.IsEnabled, string.Format("Verify Item0Customtextbox0.IsEnabled \'Equal\' \'False\' failed.  Actual value \'{0}\'", Pages.PC5xxLogin.SilverlightApp.Item0Customtextbox0.IsEnabled));
}

I have verified the Element explorer for the Element Item0Customtextbox0 if it is there. But element explorer also have the element in same hierarchy.

I have no clue what has gone wrong. In log following is the error information
'1/3/2014 6:18:16 PM' - 'Fail' : 7. [DatalogPreferencePage_Functionality_CodedStep15] : Verify Item0Customtextbox0.IsEnabled 'Equal' 'False'", RequiresSilverlight = true
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Exception thrown executing coded step: '[DatalogPreferencePage_Functionality_CodedStep15] : Verify Item0Customtextbox0.IsEnabled 'Equal' 'False'", RequiresSilverlight = true'.
InnerException:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[name 'Exact' ContentInnerBorder] AND [XamlTag 'Exact' border][XamlPath 'Exact' /contentpresenter[name=ContentElement]/_adminpassword[0]/dashboardcontrol[0]/border[0]/grid[0]/border[0]/contentpresenter[0]/radbusyindicator[0]/grid[0]/contentcontrol[name=Content]/contentpresenter[0]/grid[name=LayoutRoot]/customtextbox[0]]
 
   at ArtOfTest.Common.WaitSync.CheckResult(WaitSync wait, String extraExceptionInfo, Object target)
   at ArtOfTest.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout, WaitResultType errorResultType)
   at ArtOfTest.WebAii.Silverlight.VisualWait.ForExistsInternal(Int32 timeout, Boolean invertCondition)
   at ArtOfTest.WebAii.Silverlight.VisualWait.ForVisible(Int32 timeout)
   at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get(XamlFindExpression expr, Boolean waitOnElement, Int32 timeout)
   at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get(XamlFindExpression expr)
   at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get[TControl](XamlFindExpression expr)
   at ArtOfTest.WebAii.TestTemplates.XamlElementContainer.Get[TControl](String[] clauses)
   at TelerikTestAutomation.Pages.PC5xxLoginPage.SilverlightAppElement.get_Item0Customtextbox0() in d:\Cirrus\Cirrus_TFS\Cirrus UI\PC550\Cirrus Test Automation\TelerikTestAutomation_Local\TelerikTestAutomation\Pages.g.cs:line 4256
   at TelerikTestAutomation.Setup_Page.Data_Log_Preferences.DatalogPreferencePage_Functionality.DatalogPreferencePage_Functionality_CodedStep15() in d:\Cirrus\Cirrus_TFS\Cirrus UI\PC550\Cirrus Test Automation\TelerikTestAutomation_Local\TelerikTestAutomation\Setup Page\Data Log Preferences\DatalogPreferencePage_Functionality.tstest.cs:line 496


We are using Visual studio 2012 for capturing and executing test cases.

Please help ASAP.
Cody
Telerik team
 answered on 09 Jan 2014
3 answers
230 views
Hi All,

I would like to use only native Studio functionality and have two nooby questions.

1. How to send data to source DB from coded step (have already DB connection defined - I use DSN connection to mysql)?
Is there a simple method to run just pure insert query?
All I have found are few Visual Studio methods and JS which seems to be a problem for me as I act as a client only and cannot add my JS to the WebPage (requirenment from Invoking JavaScript page:http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/write-tests-in-code/advanced-topics/javascript/invoking-javascript.aspx)

2. How to retrieve value to some variable from page element
Example:
I have page called KarolPortfolio and element called Balance in the hierarchy on the right in my Telerik Studio.
In the recorded step it is defined as a primary target: /KarolPortfolio/Balance
Balance is an element found using find syntax: tagname is exactly strong and class is exactly balance

Is there a way to run something similar to this code?
Dim balance as string = KarolPortfolio.Balance.ToString

As a last step I want to send this Balance to the DB table that is defined in the first step.
regards
Karol



Cody
Telerik team
 answered on 09 Jan 2014
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?