Telerik Forums
Test Studio Forum
1 answer
99 views
In debug and running  enviroment, in code behind, I cannot get my path that configured in *.testsettings file even I have be enabled Deployment (you can see the attached file), it alway returns default path is "D:\"
(I using TestStudio_2011_1_609 version)

Colud you have any idea ?
Cody
Telerik team
 answered on 06 Jul 2011
12 answers
318 views

Hi Telerik/All,


I have a situation where I need to automate test in which automation test should searches for a value in the list box and if value is present in the list box then it needs to highlight it. I have developed a customize code which is as follows:


pages.BORWL08D63186Wmservice.SilverlightApp.LstProcessOrdersListbox.Find.ByTextContent(Data("Process Order").ToString()).User.Click()


This code works fine when the value is visible in the listbox without scrolling down. But if the value is at the bottom of the listbox (with vertical scroll bar enabled) then the above codes does not work.


I need your suggestion/help to develop a script, where it looks for the value in the listbox if it’s not present then scroll down and search for the value till the end of listbox. Your help would be a great help.


Currently the alternative way which I am using is as follows:

1)  Look for value in listbox with above customize code. (Mark the step as continue on failure)

2)  Press the vertical scroll bar. (Mark the step as continue on failure)

3)  Look for value in listbox with above customize code. (Mark the step as continue on failure)

4)  Press the vertical scroll bar. (Mark the step as continue on failure)

5)  Look for value in listbox with above customize code.


This codes work fine but its not fully automate, and it has following issues:

1)  If the value is at the bottom of a very large amount data in the list box then this will not work (stops after two vertical scroll down).

2)  If the value is in the middle of the list box after one vertical scroll down pressed, then we will have few failed steps and the overall result of the test will be failed. Even though it had successfully passed the test.


Your help in this regards will be be much appreciated. Also please note that i have scripts written in VB


Cheers


Akbar

Cody
Telerik team
 answered on 05 Jul 2011
3 answers
178 views
I have created test scripts successfully. Sometime, I reopen created scripts but Test Studio cann't load scripts.
(First, I installed WebUI_TestStudio_Developer_2010_3_1421_Purchase.msi using as trial. After that, I removed and re-installed using licence key then have above issue.)
You can see attached file.

So Is it possible to restore my lose scripts ?


Anthony
Telerik team
 answered on 05 Jul 2011
3 answers
112 views
Hi,

I encounter some trouble with testing a specific part of our application. I try to test the calendar availability during the purchase path. I made a logical step "while" there is no availability -> switch to next month.

This works, but I also want to book for a random day if there is availability.
For example, on this page, the calendar at the bottom :
http://www.weekendesk.fr/week-end/4398/week-end-a-Courseulles-sur-Mer-Normandie-Week-ends_gourmands

One of your Solutions Consultant told that it has to be a coded step. Can someone help me ?
 
Thanks,

Pierre
Stoich
Telerik team
 answered on 04 Jul 2011
5 answers
157 views
Good Morning,

I recently downloaded the trial version of Telerik Test Studio and successfully ran the installation. For some reason, when I start Test Studio after installation, the application hangs on the main screen and simply hangs.

Has anyone else seen this issue or can anyone provide some possible options?

Thanks!
Anthony
Telerik team
 answered on 01 Jul 2011
2 answers
139 views
Is it possible to copy a date from one field and paste in to another field?
The application I am testing has a date field that defaults to 'todays date', there is then another field where I have to specify todays date, I want to copy the date from the 'todays date' field and then paste it in to the field that is blank but requires todays date to be entered. The alternative is to edit my script for the day every time I run it.
I have checked mouse options and I have recorded ctr c and ctr v but this does not work.
Plamen
Telerik team
 answered on 01 Jul 2011
2 answers
185 views
I would like to use the HttpProxy to add a special http header when performing a test.  However, I am not able to execute a simple test using the HttpProxy.

Whenever I set the UseHttpProxy value to true, my test will fail with a System.TimeoutException.  A popup window  "ArtOfTest.Runner has stopped working" message appears.

the browser does navigate to the page.  I can view the page in the browser.  At the end of the test, the crash occurrs.  The test does not fail if I remove the UseHttpProxy line.

System configuration...
Test Studio 2011.1.609.0
Running Windows 7 Pro 64-bit SP1
4GB RAM
Added ArtOfTest.WebAii.HttpProxy.exe and ArtOfTest.Runner.to windows firewall exceptions

Test setup...

[CodedStep(@"Navigate to : 'http://www.mckerinsoftware.com/'")]
public void apibranchtest_CodedStep()
{
         Manager.Settings.Web.UseHttpProxy = true;
  
         // Navigate to : 'http://www.mckerinsoftware.com/'
        ActiveBrowser.NavigateTo(http://www.mckerinsoftware.com/);
}

Log entry...

Overall Result: Fail
System.TimeoutException: The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)
   at ArtOfTest.WebAii.Messaging.Process.BrowserProvisioner.EndService()
   at ArtOfTest.WebAii.Core.Manager.End()
   at ArtOfTest.WebAii.Core.Manager.Dispose(Boolean disposing)
   at ArtOfTest.WebAii.Design.Execution.TestExecuteProxy.ShutDown()
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteTest(Test testcase, Settings settings, String testBinaryFolder, String deploymentFolder, ExecutionType exeType, Guid firstStepGuid, Guid lastStepGuid, IntPtr existingBrowserHandle, DebuggerOptions debuggerOptions)
------------------------------------------------------------
'6/30/2011 8:12:24 AM' - Overall Result: Fail
'6/30/2011 8:12:24 AM' - Duration: [0 min: 0 sec: 10 msec]
------------------------------------------------------------

Other note...
On the Help menu when I View the Application log, I see the following message even during a successful test when the UseHttpProxy line is commented out.  I do not know if this is related, but wanted to provide as much info as possible to help with a resolution.

Error: PipeCommunication.AsyncPipeRead() : EXCEPTION ("Pipe Null State: False")

Type: ObjectDisposedException

Message: Cannot access a closed pipe.

Call Stack:

at System.IO.__Error.PipeNotOpen()

at System.IO.Pipes.PipeStream.CheckReadOperations()

at System.IO.Pipes.PipeStream.BeginRead(Byte[] buffer, Int32 offset, Int32 count, AsyncCallback callback, Object state)

at ArtOfTest.WebAii.Messaging.Process.PipeCommunication.AsyncPipeRead(PipeStream pipe, Byte[] bytes, Int32 offset, Int32 count)

Matt
Top achievements
Rank 1
 answered on 30 Jun 2011
1 answer
104 views
Hi,

I am using the free testing framework tool to perform browser automation. The code is written, but I get an exception:

    // Create the manager object  
    Manager myManager = new Manager(mySettings);

    // Start the manager  
    myManager.Start();

    // Launch a new browser instance. [This will launch an IE instance given the setting above]  
    myManager.LaunchNewBrowser();

On the launchnewbrowser() line, the code throws a timeoutexception. What am I doing wrong?

Thanks
Plamen
Telerik team
 answered on 30 Jun 2011
16 answers
2.3K+ views
Hello,

I have an error on my test execution.

Steps:
'8/12/2010 5:45:36 PM' - 'Pass' : 127. Wait for Exists 'LoadingPanelDiv'
'8/12/2010 5:45:37 PM' - 'Fail' : 131. Wait for element 'LoadingPanelDiv' 'is not' visible.

The error occurs time after time on step 131. Wait for element 'LoadingPanelDiv' 'is not' visible.

Failure Information:
~~~~~~~~~~~~~~~
The given key was not present in the dictionary.
InnerException:
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at ArtOfTest.Common.Design.Extensibility.DescriptorValueStore.GetValue[T](String propertyName)
   at ArtOfTest.WebAii.Design.IntrinsicTranslators.Descriptors.VisibleVerificationDescriptor.Verify(DescriptorValueStore dataStore)
   at ArtOfTest.Common.Design.Extensibility.Descriptors.VerificationDescriptor.PerformWait(IAutomationHost host)
   at ArtOfTest.WebAii.Design.Execution.ExecutionEngine.ExecuteStep()

Could you please help me to fix this error?

Thanks
Anthony
Telerik team
 answered on 30 Jun 2011
1 answer
280 views
Is there a way to add Global variables to a project.  I had a set of scripts that required using a significant number of code steps - many of which used the same variable.  Data binding a variable to each of these steps is cumbersome - is there a way to include a variable into each of the steps?


Thanks
Plamen
Telerik team
 answered on 29 Jun 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?