Telerik Forums
Test Studio Forum
3 answers
204 views
hello ,
how to click on element in  javascript calendar, by coded steps  ?attached a screen shot of my calendar
this demotrate how I select the date by clicking in its elements ,
thank you
Anthony
Telerik team
 answered on 09 Sep 2011
8 answers
166 views
Hi plamen/cody/stoich,

Good Morning.,

Can you please help me in identifying the procedure for dynamically setting datasource to test scripts.......

let me explain you my scenario:
----------------------------------------------------------------------------------

ArtOfTest.WebAii.Design.Execution.TestInfo test1 = new ArtOfTest.WebAii.Design.Execution.TestInfo(Guid.NewGuid().ToString(), @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\" + row.Cells[0].Text + ".tstest");
ArtOfTest.WebAii.Design.Execution.TestInfo test2 = new ArtOfTest.WebAii.Design.Execution.TestInfo(Guid.NewGuid().ToString(), @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\" + row.Cells[1].Text + ".tstest");

ArtOfTest.WebAii.Design.Execution.TestList listcol = new ArtOfTest.WebAii.Design.Execution.TestList("testdatabind", "");
listcol.Tests.Add(test1);
listcol.Tests.Add(test2);

listcol.Settings.Web.RecycleBrowser = true;
listcol.Settings.UnexpectedDialogAction = ArtOfTest.WebAii.Core.UnexpectedDialogAction.HandleAndContinue;
listcol.SaveToListFile(@"C:\Users\hvadde\Documents\Test Studio Projects\IndividualScripts");

System.Diagnostics.ProcessStartInfo psi = new ProcessStartInfo();
 psi.WorkingDirectory = @"C:\Program Files (x86)\Telerik\Test Studio 2011.1\Bin\";
 psi.FileName = "ArtOfTest.Runner.exe";
 psi.UseShellExecute = false;
psi.Arguments = " list=" + "\"" + @"C:\Users\xxxxx\Documents\Test Studio Projects\IndividualScripts\TestLists\testdatabind.aiilist" + "\"";
 Process p = Process.Start(psi);
 p.WaitForExit();

----------------------------------------------------------------------------------------------------------------------

My current scenario:
now am binding the datasources(excel files) to individual test sciprts(test1,test2) and adding then as list and executing them by running over command prompt wth artofrunner.exe...code show above...pls chk it...


My requirement :
now i need like.....thru code i want to set datasources(excel files) to individual test scripts(test1, test2)...and adding then as list and executing them ...

can you please tell/help me in identyfing the procedure for dynamically adding datasources to individual test scripts....
thnaks in advance....

am involving in the preparing the DEMO of some application using this telerik test studio....
 
Thanks.,
Hari

wish
Top achievements
Rank 1
 answered on 08 Sep 2011
3 answers
67 views
OK, first off I am new to this tool so bear with me if this seems newbish.

How do I set a 'radtreeviewitem: item 'item1' select action to accept a different param for the piece labeled 'item1'?

1.  So I create the script, (recorded), and I selected <item1>
2.  Now I want to pass a different item, (item2 for example). 

How can I do this?  I just want to execute the script 99 times with each iteration containing a new item?  I am hoping I don't have to record every item initially for them to be included in the project elements.

Again I am new to this tool.  My background is in QTP which happens to suck with the silverlight tools here so we are trying to get this tool working as the recognition has been the best by far. 
Anthony
Telerik team
 answered on 08 Sep 2011
7 answers
149 views
Hello,

how can I create data-driven Test?

I want to test an registration for a website. The testscenario contains over ten specific testcases, with different results. I need to add different verifications for all these results.
Did anyone know a solution, where i can reuse many fragments?

br Stefan
Anthony
Telerik team
 answered on 08 Sep 2011
2 answers
131 views
Hi,

I have just started Telerik QA edition in which i have created 2 test in a project.Now when i add both the test in a test list and execute test list, it executes the first one without error and for the 2nd test it open a new browser and my 2nd test fails.Since the 2nd test is in continuation of the 1st one, so it should fail.
But my query is why it is not executing the 2nd test in the previous browser.Am i missing some settings.

Please provide your valuable suggestions.

Regards
Deepak
Deepak
Top achievements
Rank 1
 answered on 08 Sep 2011
1 answer
108 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
118 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
217 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
186 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
154 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
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?