Telerik Forums
Test Studio Forum
2 answers
82 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
441 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
36 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
109 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
127 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
66 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
149 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
134 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
3 answers
337 views

Hi ppl,

I am currently evaluating the Test Studio including its VS plugin. The usability is very good and the element Mapping (WPF) is awesome. Everyone who has done WPF testing with the MS Framework knows what I am talking about...

However, I ran into some critical issues this morning:

Preconditions

Here is what I need to to:
1) Start IIS Server
2) Load a default Dataset XML into my MSSQL Server
3) Wait for the Process to be finished (Processmonitor)
4) Start my Application
5) Run my Tests

So, I need to ensure that steps 1) - 3) are executed BEFORE EACH test. In NUnit when writing Unittests I solved this problem simply by creating an abstract class, containing all preconditions. This also works using the MS UITesting Framework.

Test Studio always starts with step 4).

Is there...
....any possibility to execute code BEFORE EACH test using Test Studio (plugin)?
....any possibility to execute code BEFORE EACH test using only the pure framework?

This is crucial for my Application Tests, because if I do not reset the Database before a test runs again, it might fail because (for example) it tries to add an element to a list which is already in the list (unique attributes).

"Application"-class

When I am working in Visual Studio, it does not recognize the "Application"-class. It seems to only be available during run-time. So far so good, but how can I address a UI Element via C# code? (Writing "Application." [there is a dot] does not show me any suggestions, which seems absolutely logical, because Application is not recognized)
I don't need a complete tutorial here, but I would be very thankful for any link to a documentation about PURELY coded Tests using the Telerik Testframework.

 

Thank you a lot in advance!

Stephan

Cody
Telerik team
 answered on 28 Sep 2015
3 answers
163 views
Running the tests on Chrome/Firefox browsers on VM slaves are VERY slow, but when run on local computer, the tests runs normal. Any contributions that is causing the issue?
Cody
Telerik team
 answered on 28 Sep 2015
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?