Telerik Forums
Test Studio Forum
1 answer
110 views
Hi.

In my testproject I have some scripts with some code behind. Very simple code, I might add. It resizes the active browser:
<CodedStep("New Coded Step")> _
Public Sub resize_CodedStep2()
    ' ActiveBrowser.ResizeContent()
    activebrowser.ResizeContent(0,0,1024,690)
      
      
End Sub

Yesterday everything was running perfect.
Today I have the following troubles:

When I make a new test and add a code step to it, it fails and logs:

'8-9-2011 14:36:18' - System.ArgumentException: Unable to find the test class type 'test_08091120' in your test assembly. Please make sure your test code behind is compiled with your latest changes.

 
When I run a test I made yesterday, it still runs fine.
The (only) code I use is: ActiveBrowser.Resize(0,0,1024,700)
I would change it to: ActiveBrowser.Resize(0,0,600,100)
 When I change the values, it still runs fine. But it does not use the new code, i.g., it stille changes the browser size to 1024 x 700

I looks like it does not compile at all.
I work in the Stand Alone version, I did not found any option to start compiling.
My project is in VB. The resize test only open a browser and resize it, no other steps.

Can you tell me why it doesn't compile and how I can fix it?


Cody
Telerik team
 answered on 08 Sep 2011
2 answers
119 views

I have parameterized one script but I find for every value script start to execute from the beginning.

I want to execute the particular step for different values on the open web page rather navigate from the begging.

Could you please help me out?

Sabyasachi
Top achievements
Rank 1
 answered on 08 Sep 2011
5 answers
225 views
Hi,

I'm currently creating a single test that would be needing 2 datasources. Is that possible?

I saw some documentation that they are using 2 tests for multiple data binding. That would mean that for our Test Studio Project will have many tests just to accomodate the other data binded test.

Thanks
Mark
Top achievements
Rank 1
 answered on 08 Sep 2011
1 answer
192 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
157 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
209 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
141 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
130 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
298 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
259 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Jay
Top achievements
Rank 3
Bronze
Iron
Iron
yw
Top achievements
Rank 2
Iron
Iron
Stefan
Top achievements
Rank 2
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Bohdan
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?