Telerik Forums
Test Studio Forum
2 answers
58 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
58 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
150 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
2 answers
62 views
Hi all,

I discovered this morning that our servers had automatically upgraded Chrome to version 32.0.1700.41.  This appears to be an unstable version of Chrome and all our tests have failed at certain points because of this.  After some digging around I found this forum post relating to the Chrome update, so we have reverted back to version 31.0.1650.63 and things are working fine again.

http://productforums.google.com/forum/#!topic/chrome/zmgiVCv9X0A%5B1-25-false%5D

Just thought I'd share this with you all and remember to disable the automatic updater in the Chrome Plugins until this issue has been resolved.

Thanks
Shane
Shane
Top achievements
Rank 1
 answered on 08 Jan 2014
1 answer
54 views
I couldn't find anyone saying they had this problem, but this is both a question and a workaround I thought I'd share.

When I launch Test Studio and navigate in IE to our silverlight application, all I get is a white screen. (Right clicking displays the "silverlight" menu.) Looking at the log in Test Studio, it is looking for an old silverlight version that doesn't exist on my PC, I assume because the Silverlight player in IE claims that is the version it is running.

I have been able to work around this by copying the current Silverlight installation folder and duplicating it with the old version number.  It eventually gets deleted by Windows updates or some other process though. Maybe I am missing something?

[01/02 10:05:05,IEXPLORE.EXE(3772:1),Framework] SilverlightUtils.AppendAutomationExtension() : EXCEPTION! (see below)
     Situation: Unable to inject System.Windows.dll
     Outer Exception Type: System.IO.DirectoryNotFoundException
     Message: Could not find a part of the path 'C:\Program Files (x86)\Microsoft Silverlight\5.0.61118.0\System.Windows.dll'.
     HRESULT: 0x80070003 (Official ID (if app.) = 2147942403, Error Bit = FAILED, Facility = FACILITY_WIN32, Code = ERROR_PATH_NOT_FOUND)
     Call Stack:
          at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
          at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
          at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)
          at ArtOfTest.WebAii.Silverlight.SilverlightUtils.MemoryStreamFromFilename(String filename)
          at ArtOfTest.WebAii.Silverlight.SilverlightUtils.AppendAutomationExtension(MemoryStream originalXapFile, Boolean forceUpdate)

Installed I have
C:\Program Files (x86)\Microsoft Silverlight\5.1.20913.0\

So I copy that folder to be
C:\Program Files (x86)\Microsoft Silverlight\5.0.61118.0\
and funny enough that works, for awhile anyway. Why would the browser (IE and Chrome) want to run an old version? I asked our development team and they didn't know either.
Cody
Telerik team
 answered on 07 Jan 2014
1 answer
27 views
Let me explain the goal:

In our application, the final user can create a form and business rules,
with purpose is offered a software with "record tool" for the final user can do auto-test about the forms created for it.

In this scenery, I´m thinking that our software will have a button integrated into User interface and it will be a Telerik record funcionality (with telerik framework or dll´s or test studio calls).

if i will do it , i´m interesting in know:

1.How i will do it?
2.How get a license in this case with telerik for use it?

Thanks for your help.
Cody
Telerik team
 answered on 07 Jan 2014
3 answers
55 views
Hi,
    i have tested my site using Test studio, recorded Filtering and Grouping functions in Grid. i checked the recorded steps and executed the steps. but executions fails at some time even though the steps are correct.
please provide me good solution for testing Filtering and Grouping in Grid using Test Studio.
Cody
Telerik team
 answered on 02 Jan 2014
7 answers
104 views

Telerik is not working as expected.

We first had issues while scheduling the testlist. We followed up on several ticket. After reinstalling scheduling did worked, but we had a performance issues. Now we upgraded RAM, again telerik started bheaving sporadically.

We resinstalled after RAM upgradation with no missing steps, as suggested in telerik videos.

While running list remotely, the remote machine status is shown as busy but the machine which has scheduling server and test studio do not communicate with the execution servers.

Please find the attached logs and let us know the solution.

Also we really regret not having a timely support having contacted you many times through support tickets even with all the logs and and screenshots http traffic provided.

Please provide us the solution for the same. Also kindly let us know if we can have a phone assistance or remote web assistance.

Ivaylo
Telerik team
 answered on 02 Jan 2014
1 answer
48 views
Good day,,
I was using the TestStudio_2013_1_911,, and today I installed the new version TestStudio_Ultimate_2013_2_1210.

In the old version the spaces of the cell name was replaced with "Nbsp",, and when I run the upgraded testcases Unable to locate element error appear. And it seems that the new version don't replace the space with "Nbsp".
And in my testcases there is alot of verifecations depends on the TableCell name.
Please any advice...??


Thanks in advance.
Cody
Telerik team
 answered on 31 Dec 2013
6 answers
91 views
Hi,

Our application team recently updated one of the screens in our application to replace RadTreeView with RadTreeListView to display a hierarchical set of data.  While updating our automated tests to react to this change, I ran into several issues in the translator for the TreeListView control:

a) Attached error message showed up when I tried to record a step to verify root node count on the TreeListView control.  Step was recorded using the Build Validation dialog - error occurred when I clicked OK after changing expected value (originally "value?") to the expected value.

b) When I ran the test, that same step failed with the following exception (note:  same exception also occurs if the type of comparison is anything other than Equals such as GreaterThan):
'12/16/2013 5:47:43 PM' - 'Fail' : 41. radtreelistview(EncounterDiagProcNaviagationTreeRadtreelistview): root item count 'Equal' '0'.
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Element Not found!
FindExpression used:
[name 'Exact' ColumnViewElement]

InnerException:
ArtOfTest.Common.Exceptions.FindElementException: Element Not found!
FindExpression used:
[name 'Exact' ColumnViewElement]

   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.Silverlight.VisualFind.ReturnOrThrow(FrameworkElement e, String throwMessage)
   at ArtOfTest.WebAii.Silverlight.VisualFind.ByName(String name)
   at Telerik.WebAii.Controls.Xaml.RadTreeListView.get_ColumnView()
   at Telerik.WebAii.Controls.Xaml.RadTreeListView.get_TreeViewPanel()
   at Telerik.WebAii.Controls.Xaml.RadTreeListView.get_TreeListItems()
   at Telerik.WebAii.Design.Translators.Xaml.TreeListView.TreeListViewIntegerPropertyVerification.GetValueByProperty(String name)
   at Telerik.WebAii.Design.Translators.Xaml.Common.RadControlPropertyVerificationDescriptor.ExtractData(IApplication hostApp, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Extensibility.XamlVerificationDescriptor.ExtractData(IAutomationHost targetHost, DescriptorValueStore dataStore)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)


c) Same exception occurred when I attempted to get the root node count in a coded step (using the API RadTreeListView.TreeListItems.Count)
d) Same exception occurred when I attempted to get all the root nodes in the tree (using RadTreeListView.TreeListItems).

Upon reviewing past posts in the forum, I came across the following threads that (I believe) are reporting the same or similar issues:
http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/bug-with-radtreelistview.aspx
http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/time-outs-when-evaluating-properties-in-radtreelistview.aspx
http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/treelistviewtests-bugs.aspx

The bug referenced in the above threads (PITS 10006) remains unscheduled - and there is no corresponding issue (that I could find) in the new Issues and Feature Requests site.

Telerik:  Could you update the status of the above issue?   If it is fixed, which version of Test Studio has the fix? (Note, we are on 2012.2.1420 - upgrade is currently not an option for us).  If it is not fixed, could you raise priority on it (there are already 5 votes on the PITS issue - I will add my vote as well).

I have worked around the above issues using the workarounds suggested in the above threads as well as some I developed on my own - but I do have a couple of questions/unresolved issues:

a) What is the real object type of the FrameworkElement objects in the list returned by the following code?  it would be nice if I could get a list of higher-order objects (such as RadTreeListItem).
IList<FrameworkElement> TreeListItems = tree.Find.AllByType("TreeListViewRow");

b)  Due to the issues with TreeListItems API, I am unable to perform tree traversal and validation functions (for example, verify row B is a child of row A, or get all child rows of a given root node row).  I believe that the TreeListView is still a tree view.  I welcome any ideas/code for doing that in my version of Test Studio (in my signature block below).

Thanks for any help you can provide.

Shashi
Telerik Test Studio 2012.2.1420.0 (VS plugin).

Cody
Telerik team
 answered on 31 Dec 2013
Narrow your results
Selected tags
Tags
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?