Telerik Forums
Test Studio Forum
2 answers
112 views
Hello again,

I would like to be able to run a database script before a test executes or even during test execution would be great.
I was wondering if it was possible.

For example, In my website I need to log in as a certain user to access their roles and privileges, but this user might be logged into the system.  So, I would like to be able to run a database script that terminates their session and it would allow me to log in as that user before my test executes.

Thanks for any help provided.
Byron
Telerik team
 answered on 22 Apr 2013
1 answer
114 views
In an C# Script the following works:
            Element mainContent;
            mainContent = ActiveBrowser.WaitForElement(Pages.Deuba_Relaunch_FR_Navigation.Expressions.Productoverview_Maincontent_Div, 3000, false);        

How can i find an Element in mainContent, for Example an Div ?

It should give me back an HtmlDiv-element like

 HtmlDiv itemCount = Find.ByExpression<HtmlDiv>(new HtmlFindExpression("class=itemCount"));

Thanks for your help




Boyan Boev
Telerik team
 answered on 22 Apr 2013
7 answers
78 views
I am new to this so I apologise in advance.
I have two tests, one is a login test and another then selects the appropriate menu options once the user has logged in.
I have set the base url for the first test which is http://localhost:4547/SelfService/Default.aspx. The second test nees to continue where the first test ended. Im unsure how to do this?
I have both tests within a test list, is this the correct method?
Darren
Top achievements
Rank 1
 answered on 19 Apr 2013
2 answers
68 views
Hello,

I received this failure and just wanted to be sure that I'm interpreting the result correctly.  I've had timeouts before where it was waiting for the element to exist or be visible, but this error does not specify.  Did this error fail on waiting for the browser to be ready?

Thanks.

'4/16/2013 2:22:55 PM' - 'Pass' : 8. Click 'EMPLOYEEDETAILImage'
'4/16/2013 2:22:55 PM' - 'Pass' : 9. Select 'ByText' option 'SINGLE' on 'DdmTaxFileStatusSelect'
'4/16/2013 2:23:26 PM' - 'Fail' : 10. Click 'BtnSubmitAvailablePGifImage'
------------------------------------------------------------
Failure Information:
~~~~~~~~~~~~~~~
Wait for condition has timed out
InnerException:
System.TimeoutException: Wait for condition has timed out
   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.Browser.WaitUntilReady()
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request, Boolean performDomRefresh, Boolean waitUntilReady)
   at ArtOfTest.WebAii.Core.Browser.ExecuteCommand(BrowserCommand request)
   at ArtOfTest.WebAii.Core.Actions.Click(Element targetElement)
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click()
   at ArtOfTest.WebAii.Controls.HtmlControls.HtmlControl.Click(Boolean isClosing)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.ClickActionDescriptor.Execute(Browser browser)
   at ArtOfTest.WebAii.Design.Extensibility.HtmlActionDescriptor.Execute(IAutomationHost autoHost)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep(Int32 order)
------------------------------------------------------------
'4/16/2013 2:23:26 PM' - Detected a failure. Step is marked 'ContinueOnFailure=False' aborting test execution.
Alan
Top achievements
Rank 2
 answered on 19 Apr 2013
1 answer
62 views
How can I use an element on different pages (ie a dynamic website with different pagenames but the same html - structur)?
At this moment the recorder creates the identic elements for different pages (for example a href in an static menu).
Boyan Boev
Telerik team
 answered on 19 Apr 2013
1 answer
78 views
Hi, 

I have a selection of checkboxes that are created dynamically and so the test environment can never be sure of how many there will be.

We have Select All / Deselect All links which we already test for, but I would like to iterate through some test steps based on the current number of these checkboxes each time, however many there may be.

So essentially:

for each checkbox c in div-a {
     Insert test steps here, and be able to reference the current active checkbox (c) each time
}

I am using the Telerik Test Studio IDE environment with very little use of custom coded steps

Thanks,
Ghandi
Plamen
Telerik team
 answered on 18 Apr 2013
9 answers
246 views
I can't seem to capture any user data for load testing using the inbuilt Capture feature (Telerik Test Studio v2012.2.1420.0).

Everything is hosted locally on the controller/recorder. This local machine is also the only agent. You may cringe but this is for proof-of-concept more than anything. The application I'm testing uses HTTPS.

I tried to capture data using "Capture New" in IE. Fiddler2 was picking up all the HTTPS traffic but no results in Telerik. The "User Traffic" pane in the "Edit User Profile" window remained completely blank no matter how long I waited. Got the same results in Chrome and Firefox.
Cody
Telerik team
 answered on 18 Apr 2013
5 answers
116 views
Hey there,

I have some problems with highlighting an <a>-tag in a dropDown Menu.

On the first picture you can see the menu. Here I want to select the Equity hedge point, but if I click on the highlighting Button on the top and hover this point, it will look like in picture two.

if i click on the blue circle now, it will select the wrong element.

Can you help me?

Notice: The zoom is 100%.
Plamen
Telerik team
 answered on 18 Apr 2013
2 answers
44 views
Hello,

In several instances, I have needed to enter DateTime.Now.ToString() into a textbox, so I would initially record step to "enter text 'alan' into txtComment" and then customize that step in code.  I use to have success in this, but within the past few months, I have not.  I have even tried converting the step without modifying anything and I receive the same error.  Below is what I have tried so far.  We are using version 2012.2.1420.

Pages...txtComment.Value = DateTime.Now.ToString();
Actions.SetText(Pages...txtComment, DateTime.Now.ToString());

As stated above, when simply converting the step to code, the test fails:

Actions.SetText(Pages...txtComment, "alan");

I know this is very simple to do, so I must be overlooking something.

Thanks,
Alan
Alan
Top achievements
Rank 2
 answered on 17 Apr 2013
1 answer
86 views
I had an older version when i started encountering this error. I then upgraded to the latest version of Test Studio and tried executing it. It  ran fine the first time and then started to throw the same error. I am not sure why i am getting this error. Can you please help me out here?

Below is the error details.

Thank you,
Nithin

------------------------------------------------------------
'4/17/2013 11:54:59 AM' - Using .Net Runtime version: '4.0.30319.1' for test execution. Build version is '2012.2.1527.0'.
'4/17/2013 11:54:59 AM' - Starting execution....
'4/17/2013 11:55:03 AM' - Failure detected during execution. Details:
------------------------------------------------------------
'4/17/2013 11:55:03 AM' - System.ApplicationException: Exception thrown attempting to launch Internet Explorer. Please make sure Internet Explorer is properly installed and you are able to launch it. ---> System.ArgumentException: Process with an Id of 3068 is not running.
   at System.Diagnostics.Process.GetProcessById(Int32 processId, String machineName)
   at System.Diagnostics.Process.GetProcessById(Int32 processId)
   at ArtOfTest.Common.Extensions.ProcessExtensions.GetParentProcess(Process process)
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   --- End of inner exception stack trace ---
   at ArtOfTest.WebAii.BrowserSpecialized.InternetExplorer.InternetExplorerActions.LaunchNewBrowserInstance(Int32 timeout, ProcessWindowStyle windowStyle, String pipename)
   at ArtOfTest.WebAii.Core.Manager.LaunchNewBrowser(BrowserType browserToLaunch, Boolean waitForBrowserToConnect, ProcessWindowStyle windowStyle, String arguments)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InitializeWeb(ExecutionEngineCreateParams initParams)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.CreateAndInitializeEngine(Test test, ExecutionEngineCreateParams cp)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(ExecuteTestCommand command)
------------------------------------------------------------
'4/17/2013 11:55:03 AM' - Test completed!

Mercedes
Top achievements
Rank 1
 answered on 17 Apr 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?