Telerik Forums
Test Studio Forum
1 answer
180 views

I have a questions if anyone can assist

 1. I am trying to slow down the playback speed. Can you direct me to the settings that directly affects this?

 

Randell Balkaran

 

Ivaylo
Telerik team
 answered on 06 Oct 2015
4 answers
236 views
Hi Guys

Quick Question


Is it possible to use test studio with BDD? I've been looking through that posts and couldn't find anything with would marry the two things together. I know that they are other posts out there about JustCode and Jasmine.

Thanks

Chris
Cody
Telerik team
 answered on 05 Oct 2015
2 answers
53 views

Hi,

So I have the following scenario, I have a 'controller' test that runs different sets of tests now they are all called using test as step.

Now I want to create a report based on the following

Steps passed.

Steps not ran.

Step failures.

I did take a look at the documentation at http://docs.telerik.com/teststudio/advanced-topics/coded-samples/general/external-log-file, but that did not help as it only writes the 'controllers' results to the log file and not all the child tests results. I have also tried creating a property on the test and setting it via code but each time the test returns to the 'controller' the property is set to null again (this is rather annoying but gather that you clear all resources from memory once that test is done?) so that did not work for me, not at all.  So I really just want to get the report working for myself, We do and will use the built in report but it does not give me the results I require. Also I have set the test to have a OnAfterTestCompleted and like I said it only gives me the 'controllers' results.

 

Ivaylo
Telerik team
 answered on 05 Oct 2015
16 answers
343 views
Hello ,

I'm new to testing and obviously the WebUI Test Studio QA and I have some issue with the windows security dialog which looks like the one in the attached image . The regular login dialog handler does not work correctly since it fills the login information in the wrong place and does not fill it in the "use another account" fields. So is there is away to work around this issue.

Thanks you.
Ivaylo
Telerik team
 answered on 02 Oct 2015
1 answer
27 views
I'm having issues locating controls because we create controls dynamically. I'm using the "Find the live Version" feature but its forcing me to test with IE and I would like to use chrome. I would also like to know what other ways I can accomplish this issue of finding dynamically created controls. Please provide a sample project if possible; I'm using Test Studio within VS 2013.
Boyan Boev
Telerik team
 answered on 02 Oct 2015
6 answers
86 views
Hi,

I am facing the following error which executing a test step. This test step performs a simple function of retrieving value from text file and copying it into excel. The test step does what i am intending but log shows failed with messags "Fail - 0 passes out of total 0 executed." and with the following error message

------------------------------------------------------------
'08/21/2013 11:30:48 AM' - Error encountered during execution.
------------------------------------------------------------
'08/21/2013 11:30:48 AM' - Error inside the callback listener. Error: System.ArgumentNullException: Value cannot be null.
Parameter name: source
   at System.Linq.Enumerable.First[TSource](IEnumerable`1 source)
   at ArtOfTest.WebAii.Design.DesignTimeExecution._runner_TestCompleted(Object sender, TestCompletedEventArgs e)
   at ArtOfTest.WebAii.Design.Execution.RunnerController.OnTestCompleted(ExecutionReturnValues result)
   at ArtOfTest.WebAii.Design.Execution.RunnerController.CallBackListener()
------------------------------------------------------------
'08/21/2013 11:30:48 AM' - Aborting....

I could not understand where am I going wrong. Can somebody please help me with this. Also, please let me know for further information required.

Regards,
Prerna
Sandip
Top achievements
Rank 1
 answered on 01 Oct 2015
5 answers
85 views

 Lately I am experiencing crush of Test Runner (ver. 2015.1.528) in Google Chrome when a test deals with a pop-up window. On the desktop version, I cannot replicate this issue. Any ideas what could cause this_ 

 

[09.08 13:04:46,ArtOfTest.Runner.exe(3928:6),Execution] ExecutionEngine.NotifyBeforeStepExecuted() : Executing step 2 "Connect to pop-up window : 'http://myhours.com/resources/gettingstarted'"...

[09.08 13:05:01,ArtOfTest.Runner.exe(3928:6),Error] ExecutionEngine.CatchExecuteStepException() : EXCEPTION! (see below)
     Outer Exception Type: System.OperationCanceledException
     Message: Exception occurred waiting for the new browser to connect.
     HRESULT: 0x8013153B (Official ID (if app.) = COR_E_OPERATIONCANCELED, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5435)
     Call Stack:
          at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)
          at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.HtmlDialogHandlerDescriptor.Execute(Browser browser)
          at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
          at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)

     Inner Exception Type: System.TimeoutException
     Message: Wait for condition has timed out
     HRESULT: 0x80131505 (Official ID (if app.) = COR_E_TIMEOUT, Error Bit = FAILED, Facility = FACILITY_URT, Code = 5381)
     Call Stack:
          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.Common.WaitSync.For[T](Predicate`1 predicate, T target, Boolean invertCondition, Int32 timeout)
          at ArtOfTest.WebAii.Core.Manager.WaitForNewBrowserConnect(String url, Boolean isPartial, Int32 timeout)

Ivaylo
Telerik team
 answered on 30 Sep 2015
1 answer
48 views

 Hi,

We want  to use the Current test Html instance variable to another tests.

Example:    WebTest1
                   HtmlInputText txtleavename = Manager.ActiveBrowser.Find.ById<HtmlInputText>("txtLeaveName");
                   WebTest2
                   txtleavename.Focus();
                   txtleavename .Text="sick Leave";
So here we want to use the variable "txtleavename" in WebTest1 for multiple times in the WebTest2. How can we refer this variable without initialize again in WebTest2.

 

Thanks

Saravanan

Cody
Telerik team
 answered on 28 Sep 2015
8 answers
106 views

Hi!

I've been on a trial version for this week.  My initial objectives are to have some regression scripts created to do the following tasks:

1) verify list of values from dropdownlists on web portal pages

2) verify list of values with checklists / checkboxes on web portal pages

I'm working on a web portal app that have lots of dropdownlists with lots of values.  I need some assistance in getting each of the values from the dropdownlist and display it to confirm, then write into the logs or datasource and perform a comparison, returning pass/fail results.  I was able to do the following so far (in VB):

1) get the total count of the dropdownlist

Dim P_Count = Pages.MainPlaceholderDrpdwnPortFolioSelect.ChildNodes.Count.ToString()           
Log.WriteLine ("Total number of Portfolios is " +P_Count)

2) get the default selected value

Log.WriteLine (Pages.MainPlaceholderDrpdwnPortFolioSelect.SelectedOption.Text.ToString())

3) perform the comparison (only with innertex, which is pulls the whole text of combined values together)

 Dim PortfoliosRuntime = Pages.MainPlaceholderDrpdwnPortFolioSelect.InnerText 
 Dim PortfoliosList = Data("PortfoliosList").ToString() 'same as Data(0).ToString()

 If PortfoliosRuntime = PortfoliosList Then
        Log.WriteLine (PortfoliosRuntime)
        Log.Writeline ("Portfolios lists matched!")
 Else
       Throw New Exception("Portfolios lists didn't matched!")
 End If

 

I need help in the following and getting it work:

1) For-Next loop to loop through each value of the dropdownlist and confirmed in MessageBox or log

Dim i
For i=0 to P_Count-1
Log.WriteLine ("Loop count = " + i.ToString())
Next

2) get MessageBox to work and display message box for each value

Dim MsgBox As New NativeWindow()
MsgBox.AssignHandle(ActiveBrowser.Window.Handle)
MessageBox.Show(MsgBox, "This is a message!" 

I appreciate it and thanks in advance for your assistance.

Thanks,

Stephen

Cody
Telerik team
 answered on 28 Sep 2015
7 answers
92 views

I have an application that has a loading div called PleaseWaitGrid. I want to create a step that waits for this element to disappear inorder to move on to the next step. I have tried Wait for not exists with no luck. I've attached a screen show of what I am talking about. Can anyone help me out with this? Thank you in advance.

 

Cody
Telerik team
 answered on 28 Sep 2015
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?