Telerik Forums
Test Studio Forum
1 answer
214 views
What is the easiest way to clear the text out of a HtmlInputText or HtmlTextArea control within csharp code?

Currently we are using the following coding logic, but I would prefer something cleaner.

 

 

Desktop desktop = new Desktop();

 

 

 

 

desktop.KeyBoard.KeyPress(Keys.Back, 1, repeatCount);

 

desktop.KeyBoard.TypeText(text, 2, 0);

Anthony
Telerik team
 answered on 07 Sep 2011
3 answers
185 views
Hi plamen,

i got below exception message suddenly from today morning.,

can you provide a solution for this issue..which am facing...

Thanks
Hari

-----------------------------------------------------------------------------------------------
<RunResult Type="ArtOfTest.WebAii.Design.Execution.RunResult" Version="2011.1.829.0">
  <TestListName Type="System.String">LoginMMX</TestListName>
  <StartTime Type="System.DateTime">2011-09-01 16:40:00Z</StartTime>
  <EndTime Type="System.DateTime">2011-09-01 16:40:04Z</EndTime>
  <DataCollectors />
  <TestResults>
    <Item Type="ArtOfTest.WebAii.Design.Execution.TestResult" Version="2011.1.829.0">
      <TestId Type="System.String">944d1817-f226-4c65-9f0f-20bcd8f158eb</TestId>
      <TestName Type="System.String">Login</TestName>
      <TestPath Type="System.String">Login.tstest</TestPath>
      <ProjectPath Type="System.String">
      </ProjectPath>
      <ResultType Type="ArtOfTest.Common.Design.ResultType">Fail</ResultType>
      <AutomationStepResults />
      <NotRunStepDescriptions>
        <Item Type="System.String">Navigate to : 'http://lmq3/sgx'</Item>
        <Item Type="System.String">radmaskedtextbox: click with '1' offset action.</Item>
        <Item Type="System.String">radmaskedtextbox: type 'sgx001' text action.</Item>
        <Item Type="System.String">LeftClick on Item1Textboxview</Item>
        <Item Type="System.String">Type 'sgx1234' into PasswordPasswordbox</Item>
        <Item Type="System.String">Wait for 'LoginTextblock' text Same 'Login'</Item>
        <Item Type="System.String">Click LoginButtonButton</Item>
        <Item Type="System.String">Wait for 'SGXTextblock' text Same 'SG X'</Item>
      </NotRunStepDescriptions>
      <PerStepMessages Type="System.String">------------------------------------------------------------
'9/1/2011 9:40:00 AM' - Starting execution....
'9/1/2011 9:40:00 AM' - Detected a Silverlight Test. Setting EnableSilverlight=True
'9/1/2011 9:40:03 AM' - Detected custom code in test. Locating test assembly: IndividualScripts.dll.
'9/1/2011 9:40:03 AM' - Failure detected during execution. Details:
------------------------------------------------------------
'9/1/2011 9:40:03 AM' - System.NotSupportedException: The invoked member is not supported in a dynamic assembly.
   at System.Reflection.Emit.InternalAssemblyBuilder.get_Location()
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(String assembly, String folder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.EnsureAssemblyExists(Test testcase, String folder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionUtils.CreateCodedTestInstance(Test test, TestResult result, String binariesFolder)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.InternalExecuteTest(Test test, TestResult initializationResult)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ExecuteTest(Test test, Settings settings, String deploymentFolder, String binariesFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'9/1/2011 9:40:04 AM' - Test completed!
</PerStepMessages>
      <TotalNumberOfPassedSteps Type="System.Int32">0</TotalNumberOfPassedSteps>
      <ExecutingTestStepCount Type="System.Int32">0</ExecutingTestStepCount>
      <TotalNumberOfNotRunSteps Type="System.Int32">0</TotalNumberOfNotRunSteps>
      <IsDataDrivenResult Type="System.Boolean">False</IsDataDrivenResult>
      <SeparatorLineCharCount Type="System.Int32">60</SeparatorLineCharCount>
      <ExecutionType Type="ArtOfTest.Common.Design.ExecutionType">QuickExecution</ExecutionType>
      <EndTime Type="System.DateTime">2011-09-01 16:40:03Z</EndTime>
      <StarTime Type="System.DateTime">2011-09-01 16:40:00Z</StarTime>
      <DataIterationResults />
    </Item>
  </TestResults>
  <ResultId Type="System.String">4de5cb9d-9666-4496-a3dd-28677c767b39</ResultId>
  <Machine Type="ArtOfTest.WebAii.Design.Execution.Scheduling.Machine" Version="2011.1.829.0">
    <Id Type="System.String">00000000-0000-0000-0000-000000000000</Id>
    <NetworkName Type="System.String">PPIMMXW20</NetworkName>
    <OperatingSystem Type="System.String">Windows 7</OperatingSystem>
    <InstalledBrowsers>
      <Item Type="ArtOfTest.WebAii.Design.Execution.Scheduling.BrowserInformation" Version="2011.1.829.0">
        <BrowserType Type="ArtOfTest.WebAii.Core.BrowserType">InternetExplorer</BrowserType>
        <Version Type="System.String">8.0.7600.16385</Version>
      </Item>
    </InstalledBrowsers>
    <Status Type="ArtOfTest.WebAii.Design.Execution.Scheduling.MachineStatus">Ready</Status>
    <DBState Type="System.Int32">0</DBState>
  </Machine>
</RunResult>
--------------------------------------------------------------------------------------------------------------------------------
Cody
Telerik team
 answered on 07 Sep 2011
3 answers
237 views
Hi Cody/Plamen

I have another scenario like below...

when am executing a recorded test script or case....some times......a exception window.....like
    1. connection failure to db
    2. unhandled exception mesage etc.,

will appear at any point during my execution flow of my test script or case.....

Do we  have any option of exception handling at application level...so that if any exception appears should in future....it shoudl close by clicking ok/continue button so that it should continue my execution....

PLs help me here...by providng ur valuable suggestions...
thanks in advance..

Thanks.,
Hari
Cody
Telerik team
 answered on 07 Sep 2011
7 answers
198 views
anyone know how to get access to the controls in the param box the crystal displays when running a report so the values can be set
Anthony
Telerik team
 answered on 07 Sep 2011
3 answers
145 views
Hi,

is this possible to run automation webaii scripts wothout installling any Telerik QA/ Dev edition tools in operating system??

Anshul
Cody
Telerik team
 answered on 06 Sep 2011
7 answers
324 views
Is there a way to record using FireFox instead of IE? The web app being tested only runs in FF.
~ZZ
Cody
Telerik team
 answered on 01 Sep 2011
10 answers
277 views
I have an existing thread in which I mention this issue:
http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/automation-framework/javascript-message-box-handling.aspx

This was not happening on the 2011.5 version but when I updated to the 2011.7 Free testing framework I was getting this error.

We just installed the licensed version of Test Studio.  Now that I am at the licensed version of 2011.7 I am getting the error again when I try to navigate to one of my two web applications I am trying to create automated tests for.  Note, this only happens with one of the we applications.  This is happening in Test Studio with creating a new test, and it happens in Visual Studio 2011 with the WebAii referenced on the NavigateTo method.

I would suspect this has something to do with the web application I am testing against, since it happens on 1 of the 2 sites, but I do not know what to look at to determine why this is happening.  It is causing all my tests against this specific web app to fail due to the internet explorer instance failing and reloading.

As I stated, I can duplicate this in Test Studio when I created a basic test to log into my applications.

I researched a little bit and found a different but similiar thread, http://www.telerik.com/automated-testing-tools/community/forums/test-studio/general-discussions/explorer-has-stopped-responding.aspx, but I could not resolve my problem.
Jamie
Top achievements
Rank 2
 answered on 01 Sep 2011
30 answers
309 views
Hello all,

I installed WebUI Test Studio QA  Trial to test it and decide if i want to buy it or not. The recording functionality is working just fine but the I try to execute any of the recorded tests the  WebUI fails to open the IE and the operation is aborted. I get this in the Log :

'1/27/2011 2:29:38 PM' - Error encountered during execution.
------------------------------------------------------------
'1/27/2011 2:29:38 PM' - Error launching the runner. Error: System.TimeoutException: The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)
   at ArtOfTest.WebAii.Design.Execution.RunnerController.Launch(Int32 waitForReadyTimeout, String pathToRunner, Int32& runnerProcId)
------------------------------------------------------------
'1/27/2011 2:29:38 PM' - Aborting....

I tried using another browser (FF,chrome) to execute the tests but the result is the same. 

The machine Specification is as follow :

- Hardware:
Pentium 4
CPU: 2.80 GHz
RAM: 3.50 GB, 2.79GHz

- Software:
Microsoft Windows XP Professional
Service Pack 3

- Browser:
Windows Internet Explorer 8
    
Daniel Djambov
Telerik team
 answered on 01 Sep 2011
2 answers
310 views
I have some questions about installing latest internal builds.  I have come across several threads where it is asked/suggested to upgrade to the latest internal build for troubleshooting.  In a recent thread I created it was suggested to run the latest build to verify my issue was resolved.  Which it was with the latest internal build.  However I came across a different issue with using the latest internal build, which I posted another thread.  My main concern is not the issue of installing or trying out the latest internal builds, it is in regards to the licensing as a whole.  We just purchased 3 Test Studio licenses and 5 Test Studio Run-Time licenses.  We are using the run-time licenses for the build controller and agents, and the studio licenses for the quality engineers developing the tests.  So the machines with the run-time licenses are the latest Released build, 2 of the engineers are at the latest Released build, and I am at the latest internal build.  Therefore I am limited on what I can do. 

I assume I cannot keep the latest internal build on my computer and continue to write tests and release them.  I would assume since we are writing our tests in Visual Studio that I would need to use the same version of the ArtOfTest.WebAii framework as the controller and agents.  So if I have the latest internal build and recompile my dll, it will not work if I copy them to the controller.

I do not want to uninstall this latest internal build in case someone at Telerik asks for more information or asks me to try something different, but I also want to continue with my test writing to keep up with my goals.

What do you recommend I do in this situation?  I would like to be able to continue creating tests using the same framework as the controller and agents and other engineers, but depending on what issues I have outstanding still be able to have a machine configured with the latest internal build.  But is that going to require me to set aside a license for this?  I know and understand with the latest internal build is really for testing out new features or potentially to check for resolved issues, but I do not want to have to keep uninstalling and reinstalling Test Studio on my computer.  What is the recommend method for this process?  Do you have something documented?
Jamie
Top achievements
Rank 2
 answered on 31 Aug 2011
7 answers
179 views
Hi,

Is there an option in Test Studio to fail the entire test list if it has been executing longer than a certain period of time?

For some reason, a test or two is getting hung up and not failing the test and going on to the next test. When it does that, a simple test list of a few minutes will still be hung after a few hours.

I'm suspecting that the problem with the long running test is it's failing to find elements and not timing out correctly. We are testing Silverlight applications.

Sandy
Stoich
Telerik team
 answered on 31 Aug 2011
Narrow your results
Selected tags
Tags
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
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?