Telerik Forums
Test Studio Forum
1 answer
86 views

Hi, 

I have tried the Automatic Re-run setting which posted in http://www.telerik.com/forums/automatic-re-run-of-failed-tests-from-a-test-list-execution and the setting has worked on All Test List.

But, is it possible to configure the setting to apply on specific test lists?

For example,there are 4 test lists: Test List 1 ,Test List 2 , Test List 3 and Test List 4. Only Test List 2 and Test List 3 apply to Automatic Rerun setting.

Looking forward your reply.

Thanks!

Ivaylo
Telerik team
 answered on 25 Nov 2015
8 answers
209 views

I have recorded a drag & drop step in my test that drags a row from a RadGrid to a specific element on the page. After dragging the row to the element, a popup window is supposed to open that I will close, then the information from the row is displayed attached to the element. When I run the recorded drag & drop step, the popup window never opens. It does appear the row is getting dragged to the correct location. I was able to get the popup window to open if I set the Pause property of this step to After, then run the step. The row gets dragged to the element, the test pauses, and the popup window opens like it should, but then test execution stops while I manually answer the Test Studio pause window before the test continues. Based on this behavior, it seems like my application wants the dragged row to hover over the element for a certain amount of time before it's released (with a LeftMouseUp action) and Test Studio is releasing it immediately after dragging the row to the center of the element.

I looked at the code for the drag & drop step to see if I could drag the row over to the element and hold it there for a moment before releasing it, but that does not appear to be an option. In the code for the drag and drop step, can I replace the DragTo statement with the code to control the mouse so I can insert a wait before the LeftMouseUp action?

I am using Test Studio Product Version 2014.4.1211.0

 Here's the code for my drag & drop step:

        [CodedStep(@"Desktop command: Drag & Drop ContentPlaceHolder1EquipmentUnInstalledListGrdEquipments0TableRow to x19Span")]
        public void _06_Add_BTI_eq_to_Site_A_CodedStep()
        {
            // Desktop command: Drag & Drop ContentPlaceHolder1EquipmentUnInstalledListGrdEquipments0TableRow to x19Span
                  Pages.OrderManagementSystem.ContentPlaceHolder1EquipmentUnInstalledListGrdEquipments0TableRow.Wait.ForExists(30000);
            ActiveBrowser.ResizeContent(1280, 107, 1600, 792);
            ActiveBrowser.ScrollBy(0, 0);
            Pages.OrderManagementSystem.x19Span.Wait.ForExists(30000);
            Pages.OrderManagementSystem.ContentPlaceHolder1EquipmentUnInstalledListGrdEquipments0TableRow.DragTo(ArtOfTest.Common.OffsetReference.TopLeftCorner, 268, 28, true, Pages.OrderManagementSystem.x19Span, ArtOfTest.Common.OffsetReference.AbsoluteCenter, 0, 0, true);
        }

Boyan Boev
Telerik team
 answered on 24 Nov 2015
3 answers
112 views

Hi,

 I have the following scenario to test a web page that requires login and logout at the end. So my idea/hope is to extract the login/logout step and then simply reuse them in several tests.

 The question is how to work with them when creating a new test ? Is there any possibility to add the login step and then say "from here on I like to record my new actions" ? Then stopping the recording and add the logout step ?

 I found the "Step Builder" that allows me to add steps to a test, so this is nice (though I would have hoped that I simply can drag'n'drop them from my project panel !). But how to proceed from there ? E.g. after I added the login step, how to start the recording from that point ? Is this possible at all ?

Thanks

Boyan Boev
Telerik team
 answered on 24 Nov 2015
3 answers
94 views

When I run Telerik.TestStudio.CommandLineClient.exe from the path C:\Program Files (x86)\Telerik\Test Studio\Bin,

either as an administrator or normally it opens but then 2 seconds later it closes.

Any idea on why this is happening?

 

Thanks.

Ivaylo
Telerik team
 answered on 23 Nov 2015
3 answers
126 views

I am running a test in the UI and as I watch the browser, the test steps are executing okay and the UI marks the steps as successful (with the white check in the green circle), but Test Studio seems to think there is some kind of error and after the UI completes, all the steps are marked as not run (with the white dash in the black circle) and the test is marked as failed.

I tried rerecording the test steps and running them again and g​ot the same result, although the logs don't look the same. I've attached the logs from both runs. The first log included the DOM, which I removed. If you need the DOM included, let me know.

Test Studio version: 2015.2.273.0

Browser: IE 11, Version 11.0.9600.17959

Windows 7 Enterprise, Service Pack 1

Ivaylo
Telerik team
 answered on 20 Nov 2015
1 answer
45 views
I would like to ask, is there any way I can record a step of scrolling down/up the scroll slider in a Drop-down box/list? Thanks
Boyan Boev
Telerik team
 answered on 19 Nov 2015
3 answers
211 views
Hi
I am using telerik studio. I can not record event click and drag scroll bar on IE
How do you know. Please help me to find solution
Thanks
Boyan Boev
Telerik team
 answered on 19 Nov 2015
2 answers
79 views

Hi,

This post is regarding automatic ReRun of failed tests in a Test list.

I have followed all the steps provided in another post on same subject:

"http://www.telerik.com/forums/automatic-re-run-of-failed-tests-from-a-test-list-execution#Om_OVoH2eUyBEj6UINlhZg"

But my falied tests doesnot rerun after the test list execution gets completed.

Steps followed :

1) Downloaded the DLL and config file.
2) Pasted the files @ "C:\Program Files\Telerik\Test Studio\Bin".
3) Executed test list containing a test that fails.
4) Executed the list and rerun is not done.
5) Restarted Telerik Test Studio and again executed the same list.
Issue: Still the failing test is not executed again.
Operating System is Windows 7(Service Pack 1, RAM 4 GB, System Type : 32 bit)

Does this solution provided by you guys work only on 64 bit operating system?
Or i am missing something over here?​

Mayank
Top achievements
Rank 1
 answered on 16 Nov 2015
1 answer
50 views

Hi,

We are planning to go with layered apporoach for our automation framework .

We are confused with the approach for managing page objects.

we have a project which has business functions and a project which has all scripts.

Currently we are planning to add page objects and related business functions in a .tstest file.

But since the application is huge, the number of libraries will increase.

So I was thinking maintaining all page objects in a file called page objects.tstest and using this class in business libraries..

Please advice..

Thanks,

VVP

Cody
Telerik team
 answered on 13 Nov 2015
5 answers
67 views

Hi,

We are creating a library and Scripts layer for our project

We observed that from scripts, if we want to call library functions we need to pass Manager object as well.Else scripts fail.

Is there any way where we can call functions with parameters only.

eg 
In scripts 

objCommonLib.Login(username,password,Manager) ;

In library
public bool Login( string username,string password,Manager Manager)
{

Logic here..
}​

In scripts created instance like  objCommonLib = new CommonActions(this);

I tried creating  constructor for library like below. 

        BaseWebAiiTest activeTest;

    public CommonActions(BaseWebAiiTest callingTest)
        {
             activeTest = callingTest;
        }

 

Kindly let me know. Our main objective is to have layered approach.

 Thanks,

VVP

Cody
Telerik team
 answered on 13 Nov 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
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?