This is a migrated thread and some comments may be shown as answers.

Diagram Control Issue during Dragging

1 Answer 49 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Sabuj
Top achievements
Rank 1
Sabuj asked on 26 Apr 2016, 08:04 PM

I have a diagram control, and I was drawing an arrow across it. I did this as ATP using Microsoft Coded UI. It recorded the sequence of steps correctly as well as the dragging, however, in the code behine it put  this statement as a comment.

 

System parameter 'Show window contents while dragging' is not set.This could lead to incorrect recording of drag actions

 

when running the ATP, when it comes to the stage of drawing the arrow, it just does not, stays there as though nothing is happening. Any advice whats happening? The particular windows system parameter is set to show contents when dragging. using windows server 2008 R2.

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 28 Apr 2016, 12:19 PM
Hello Sabuj,

We are unable to reproduce such error when creating similar coded UI test with RadDiagram. Here is the code of our test which runs successfully:
public void testDiagram()
      {
          #region Variable Declarations
          WpfTreeItem uIDiagramTestsTreeItem = this.UIDiagramTestsMicrosofWindow.UITabGroupST005e2a3c77TabList.UISolutionExplorerTabPage.UIDiagramTestsTreeItem;
          WpfCustom uIDiagramCustom = this.UIMainWindowWindow.UIDiagramCustom;
          #endregion
 
          // Click 'DiagramTests' tree item
          Mouse.Click(uIDiagramTestsTreeItem, new Point(88, 6));
 
          // Type '{F5}' in 'DiagramTests' tree item
          Keyboard.SendKeys(uIDiagramTestsTreeItem, this.testDiagramParams.UIDiagramTestsTreeItemSendKeys, ModifierKeys.None);
 
          // Move 'diagram' custom control
          Mouse.StartDragging(uIDiagramCustom, new Point(188, 102));
          Mouse.Move(uIDiagramCustom, new Point(200, 500));
          Mouse.StopDragging(uIDiagramCustom, 473, 35);
      }

Could you please elaborate a bit more on your scenario - which VS version do you use, how do you create the test, you can send us a captured video too ? Thank you in advance for your cooperation.

Regards,
Petar Mladenov
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
General Discussions
Asked by
Sabuj
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or