Telerik Forums
Test Studio Forum
3 answers
100 views

We are looking for some help in overcoming the below described problem, Kindly revert back with appropriate resolution.

 

One of our application is using “Telerik TabStrip” controls on a particular web page and we are trying to automate the core business functionality for this application using “VSTF Coded UI”, During this we have encountered a problem while trying to record the TabStrip control using “Coded UI Test Builder”.

 

Problem:

On mouse over all the respective TabStrip controls (Attached necessary screenshots “Initial_Page.png” & “On_Mouse_Over.png” files) are changing their corresponding positions from Horizontal to Vertical and we are unable to proceed further

 

Kindly do revert back to us with appropriate resolution in overcoming this problem

~ Shekhar
TCS Hyderabad

Petar Mladenov
Telerik team
 answered on 07 Jul 2011
1 answer
157 views
Hi,
Pardon me if this topic is discussed some where else in the forum and I have failed to locate it.

I have two questions:

1. How can I update the execution status of a coded step through C# code
Ex: If { "Pass" }
  else  {    "Fail" } 

2.     How to use the variable (which has got the value by extraction  ) in a coded step which is coming after a few steps after extraction.

Thanks in Advance.
Swar
Cody
Telerik team
 answered on 06 Jul 2011
1 answer
121 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
357 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
200 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
132 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
183 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
163 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
207 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
146 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
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?