Telerik Forums
Test Studio Forum
1 answer
102 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
73 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
79 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
73 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
194 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
79 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
72 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
34 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
78 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
121 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?