locked
Agent UI actions

    السؤال

  • hi,

    i have a controller and VS 2010 installed and running on local machine and an agent running and connected to the controller on remote machine.I'm running the script from the VS and move to the remote machine. my question is what should i see on the remote machine? should i see the UI actions,the mouse movements and clicks in the remote machine's browser?because i don't.if i run the script without agent on local machine i can see all actions performed on the UI shouldn't it be the same on the remote machine where the agent is running?

    thanks

    • تم النقل بواسطة Edwer Fang 22/رمضان/1431 05:32 ص (From:Visual Studio Team System - Testing)
    21/رمضان/1431 11:23 ص

جميع الردود

  • Hello,

    I am moving this post to Visual Studio UI Automation Testing (includes CodedUI) Forum so you can get better and quicker response as there are more experts on this kind of issues.

    Thanks for your understanding.


    Please remember to mark the replies as answers if they help and unmark them if they provide no help
    22/رمضان/1431 05:31 ص
  • sure thanks
    22/رمضان/1431 06:50 ص
  • Yes you should see the Mouse/Keyboard actions if the tests are run via Agent also.

    You should run the Test Agent as Interactive Process. Are you?


    Please mark this post as answer if this answers your question
    22/رمضان/1431 06:52 ص
  • yes  i run it a interactive process but, what happend right after i'm running the test and moving to the VM machine to see the agent actions is that i don't see any action performed on the GUI. no text typing, no mouse clicking, nothing. i can see on the Vm machine on agent GUI that it connected to the right controller but no action is been performed.

    when i'm running the test on the machine where the VS installed and running i can see all keyboard/mouse on the GUI.

    what esle can get wrong?

    thanks

     

    23/رمضان/1431 07:16 ص
  • Do you see some status "Running Tests" or some kind of that in the TestAgent UI?

    What I guess is the test agent didn't receive any tests to run. Have you succeeded in running through test agent on this machine before?


    Please mark this post as answer if this answers your question
    23/رمضان/1431 09:46 ص
  • in the agent GUI i can see that it is getting the test to run sisnce i can see

    Test Progress: 0/1 Completed

    means it is running something i can also see the 1 changed to 0 when i return to the VS machine and click stop run. but no keyboard/mouse actions are viewed

    23/رمضان/1431 11:55 ص
  • That means there is nothing wrong with the setup.

    What test are you running?

    Does the test launches an app or a BrowserWindow?

    Is the test passing? If it fails, what exception do you get in your test results?


    Please mark this post as answer if this answers your question
    23/رمضان/1431 11:59 ص
  • i'm running coded ui test.

    i'm loading the ie untill specific page and the script is acting from there.

    the test fail.

    the error message:

    Test method LoadFNXEnvWithDocuments.CodedUITestMethod1 threw exception:
    Microsoft.VisualStudio.TestTools.UITest.Extension.TechnologyNotSupportedException: Internet Explorer 6.0 is currently not supported. Go to http://go.microsoft.com/fwlink/?LinkId=157214 for information on available add-in for possible support.

    my scenario is clicking a link in the web site and this click is open new window which from there i'm adding documents to an existing Content manager system that manage documents content.

    when i click the link manually (using the mouse) i can see sand clock start to run and right after that the new window display. i want to mention that i see this sand clock also on the vm few seconds after i click run but i don't see any mouse click before and the new window doesn't display,if i can see the sand clock it seems like the click was perform but no action is taking.from than on i won't be able to load the web site again only if i restart the machine. and it's related with this post

    http://social.msdn.microsoft.com/Forums/en-US/vststest/thread/f2a28e19-ac7d-46d9-b368-e62e0a401d6a

     

    23/رمضان/1431 12:10 م
  • It appears that your agent has IE6.0 installed. CUIT is not supported on IE6.0. Please install IE7.0 or IE8.0 on the agent machine and try again.
    Please mark this post as answer if this answers your question
    23/رمضان/1431 02:23 م
  • is's true i do have ie6 but the tests i need to perform is for all ie versions means 6,7,8,9 beta.

    that's a shame MS it self doesn't support its own ie than who else will?

    23/رمضان/1431 02:46 م
  • Not sure if you had a chance to look into this - http://msdn.microsoft.com/en-us/library/dd380742(VS.100).aspx

    If not, better go through this before you run into any more such surprises.


    Please mark this post as answer if this answers your question
    23/رمضان/1431 04:16 م
  • hi Vishnu,

    i read what you sent me and i created new machine that runs Win 2003 IE8 and i installed the agent there, run the script (i saw the connection at the agent's GUI) an still i can't see the mouse's actions and clicks. what else can be wrong?

    i also did this:

    Windows Internet Explorer Enhanced Security must be turned off for Windows Server 2003 and Windows Server 2008.

    by setting all security level under the browser's tools to minimum. is there anything more i should do?

    thanks

    27/رمضان/1431 12:53 م
  • Is the launching the browser?

    if the test fails, Can you please give the exception you are getting ?


    Please mark this post as answer if this answers your question
    27/رمضان/1431 01:50 م
  • hi vishnu,

    when i run the script i manage to see the first action performed (right click on a link to open menu) , from this menu i select an item. when i run the script on my local machine the action perform successfully but when the agent runs it on remote vm machine i can only see the right click on the link and the menu display, it doesn't manage to perform the click on the menu item. any way it takes around 3 minutes for it to start perform any action is it normal?

    here is the error:

    Warning    16/09/2010 16:09:24    IntelliTrace is configured to collect data from IIS, but no Web request was intercepted during the test.  Verify that the "ASP.NET Client Proxy for IntelliTrace and Test Impact" is selected in the diagnostics and data page of your test settings, and that "localhost" or "127.0.0.1" is not being used to contact the server.  You can safely ignore this warning if you are not testing a web application or web service on the IIS server.    IntelliTrace    VMDU_INSTALLQA

    Error Message:

    Test method LoadFNXEnvWithDocuments.CodedUITestMethod1 threw exception:
    Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException: Window 'אשף יצירת מסמך בתיוק אוטומטי -- Webpage Dialog' is blocking the control 4. Please move the window 'אשף יצירת מסמך בתיוק אוטומטי -- Webpage Dialog' or make the control 4 visible and retry the action. Additional Details:
    TechnologyName:  'Web'
    ControlType:  'Cell'
    Id:  ''
    Name:  ''
    TagName:  'TD'
    MaxDepth:  '3'
     ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F003

    Error Stuck Trace:

    Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.MouseButtonClick(Int32 x, Int32 y, Int32 nButton, Int32 fEnsureVisible, String bstrKeyModifiers)
    Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.MouseButtonClick(Int32 x, Int32 y, MouseButtons button, ModifierKeys modifierKeys, Int32 ensureVisible)
    Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.MouseButtonClick(Int32 x, Int32 y, MouseButtons button, ModifierKeys modifierKeys)
    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinates)
    Microsoft.VisualStudio.TestTools.UITesting.Playback.ThrowIfAnotherWindowIsBlockingControl(COMException ex, IPlaybackContext context)
    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
    Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, UITestControl uiControl, Point point)
    Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinates)
    Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementation(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
    Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementationWrapper(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
    Microsoft.VisualStudio.TestTools.UITesting.Mouse.Click(UITestControl control, Point relativeCoordinate)
    FNX.UIMap.CurrentRightClickAddDocument() in C:\Documents and Settings\oferv\My Documents\Visual Studio 2010\Projects\FNX\UIMap.Designer.cs: line 405
    FNX.UIMap.LoadClaimsWithFiles() in C:\Documents and Settings\oferv\My Documents\Visual Studio 2010\Projects\FNX\UIMaps\GetFileNames.cs: line 31
    LoadFNXEnvWithDocuments.CodedUITestMethod1() in C:\Documents and Settings\oferv\My Documents\Visual Studio 2010\Projects\FNX\LoadFNXEnvWithDocuments.cs: line 32

    Debug Trace:

    E, 5212, 13, 2010/09/16, 16:06:38.471, 8131025654, QTAgent32.exe, LoadLibrary() : Unable to find the resource 37382 from assembly C:\WINDOWS\system32\en-US\ieframe.dll.mui: Error1814
    E, 5212, 13, 2010/09/16, 16:06:38.487, 8131067614, QTAgent32.exe, LoadLibrary() : Unable to find the resource 41728 from assembly C:\WINDOWS\system32\en-US\ieframe.dll.mui: Error1814
    E, 5212, 13, 2010/09/16, 16:06:38.487, 8131099598, QTAgent32.exe, LoadIEStrings() - Could not find user32 resource assembly in he-IL or en-US
    W, 5212, 13, 2010/09/16, 16:06:40.663, 8138779396, QTAgent32.exe, AL : IEBrowserService : Unable to find WebBrowserWrapper
    W, 5212, 13, 2010/09/16, 16:06:40.789, 8139256042, QTAgent32.exe, AL : IEBrowserService : Unable to find WebBrowserWrapper
    W, 5212, 13, 2010/09/16, 16:06:40.852, 8139460397, QTAgent32.exe, AL : IEBrowserService : Unable to find WebBrowserWrapper
    W, 5212, 13, 2010/09/16, 16:06:40.931, 8139726383, QTAgent32.exe, AL : IEBrowserService : Unable to find WebBrowserWrapper
    W, 5212, 13, 2010/09/16, 16:06:41.577, 8142021789, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 557 ms. Expected it to take maximum 500 ms.
    W, 5212, 13, 2010/09/16, 16:08:20.782, 8493952025, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 98217 ms. Expected it to take maximum 500 ms.
    W, 5212, 13, 2010/09/16, 16:08:21.602, 8496846893, QTAgent32.exe, Playback - [WARNING] Internal warning: Could not obtain technology manager for given id in GetTechnologyManagerById.
    \0
    W, 5212, 13, 2010/09/16, 16:08:22.942, 8501629502, QTAgent32.exe, <a class=success>Playback - {1} [SUCCESS] MouseButtonClick - "[Web, AlwaysSearch]ControlType='Cell' && TagName='TD' && Id='' && Name='' && MaxDepth='3' && FilterCondition(InnerText='תביעה 3,1', ControlDefinition='class="c24 c245" onclick="v27.f535(\'1237', RowIndex='0', ColumnIndex='2', Class='c24 c245', TagInstance='3')"
    \0</a>
    W, 5212, 13, 2010/09/16, 16:08:31.425, 8531684917, QTAgent32.exe, IEDOM : MatchSecondaryCondition : Match Found Based on Instance
    W, 5212, 13, 2010/09/16, 16:08:31.425, 8531699274, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 7695 ms. Expected it to take maximum 500 ms.
    W, 5212, 13, 2010/09/16, 16:08:31.456, 8531828863, QTAgent32.exe, IEDOM : Discarding Control Definition due to high Descnedants Count: ControlType [Pane] ClassName [HtmlPane] TagName [DIV], UniqueIdentifier [3135] Id [] Name []
    W, 5212, 13, 2010/09/16, 16:08:38.488, 8556777204, QTAgent32.exe, PERF WARNING: FindAllDescendents: took 6933 ms. Expected it to take maximum 500 ms.
    W, 5212, 13, 2010/09/16, 16:08:38.882, 8558169937, QTAgent32.exe, Playback - [WARNING] Internal warning: Could not obtain technology manager for given id in GetTechnologyManagerById.
    \0
    W, 5212, 13, 2010/09/16, 16:09:10.589, 8670617014, QTAgent32.exe, IEDOM : IsDocumentReadyForSearch : Document state State READYSTATE_COMPLETE : NCount 0 : NState False : NPercent : 100 : Ajax 1 : Timer False unchanged for 00:00:30.0199872 s
    W, 5212, 13, 2010/09/16, 16:09:13.080, 8679492495, QTAgent32.exe, IEDOM : IsDocumentReadyForSearch : Document state State READYSTATE_COMPLETE : NCount 0 : NState False : NPercent : 100 : Ajax 1 : Timer False unchanged for 00:00:32.5584420 s
    W, 5212, 13, 2010/09/16, 16:09:14.925, 8686018666, QTAgent32.exe, Playback - [WARNING] Internal warning: Plugin based EnsureVisibleByScrolling failed to make element Visible. Trying to compose scrollable containers.
    \0
    W, 5212, 13, 2010/09/16, 16:09:15.272, 8687240642, QTAgent32.exe, Playback - [WARNING] Internal warning: Convertion of Web elements to MSAA is not supported in the current version
    \0
    W, 5212, 13, 2010/09/16, 16:09:16.470, 8691479137, QTAgent32.exe, Playback - [WARNING] Internal warning: Plugin based EnsureVisibleByScrolling failed to make element Visible. Trying ScrollByCoordinates algorithm
    \0
    W, 5212, 13, 2010/09/16, 16:09:16.533, 8691720076, QTAgent32.exe, IEDOM : IsDocumentReadyForSearch : Document state State READYSTATE_COMPLETE : NCount 0 : NState False : NPercent : 100 : Ajax 1 : Timer False unchanged for 00:00:36.0113712 s
    W, 5212, 13, 2010/09/16, 16:09:17.842, 8696390415, QTAgent32.exe, Playback - [WARNING] Internal warning: Plugin based EnsureVisibleByScrolling failed to make element Visible. Trying ScrollByCoordinates algorithm
    \0
    W, 5212, 13, 2010/09/16, 16:09:18.693, 8699410502, QTAgent32.exe, Playback - [WARNING] Internal warning: Convertion of Web elements to MSAA is not supported in the current version
    \0
    W, 5212, 13, 2010/09/16, 16:09:18.709, 8699457411, QTAgent32.exe, Playback -    < [WARNING] Internal warning:  Can not compare UI elements if one of them is not MSAA element >
    \0
    W, 5212, 13, 2010/09/16, 16:09:18.725, 8699478582, QTAgent32.exe, Playback -    < [WARNING] Internal warning:  Can not compare UI elements if one of them is not MSAA element >
    \0
    W, 5212, 13, 2010/09/16, 16:09:18.725, 8699516163, QTAgent32.exe, Playback -    < [WARNING] Internal warning:  Can not compare UI elements if one of them is not MSAA element >
    \0
    W, 5212, 13, 2010/09/16, 16:09:18.741, 8699549481, QTAgent32.exe, Playback -    < [WARNING] Internal warning:  Can not compare UI elements if one of them is not MSAA element >
    \0
    W, 5212, 13, 2010/09/16, 16:09:18.772, 8699646758, QTAgent32.exe, IEDOM : IsDocumentReadyForSearch : Document state State READYSTATE_COMPLETE : NCount 0 : NState False : NPercent : 100 : Ajax 1 : Timer False unchanged for 00:00:38.2502568 s
    W, 5212, 13, 2010/09/16, 16:09:18.772, 8699662222, QTAgent32.exe, Playback - [WARNING] Internal warning: Can't find anchor child after updating the collection
    \0
    W, 5212, 13, 2010/09/16, 16:09:18.772, 8699663171, QTAgent32.exe, Playback - [WARNING] Internal warning: Can't find anchor child after updating the collection
    \0
    W, 5212, 13, 2010/09/16, 16:09:18.804, 8699758424, QTAgent32.exe, IEDOM : IsDocumentReadyForSearch : Document state State READYSTATE_COMPLETE : NCount 0 : NState False : NPercent : 100 : Ajax 1 : Timer False unchanged for 00:00:38.2817904 s
    W, 5212, 13, 2010/09/16, 16:09:19.498, 8702237754, QTAgent32.exe, Playback - [WARNING] Internal failure: EnsureVisible via Setting Focus, Scrolling failed
    \0
    W, 5212, 13, 2010/09/16, 16:09:20.207, 8704771758, QTAgent32.exe, Playback - [WARNING] Internal warning: Couldn't get clickable point for ScreenUIElement since it was obscured by another UI element. See comparison tracing below
    \0
    E, 5212, 13, 2010/09/16, 16:09:20.570, 8706054102, QTAgent32.exe, <a class=failure>Playback - {2} [FAILED] MouseButtonClick - "[Web, AlwaysSearch]ControlType='Cell' && TagName='TD' && Id='' && Name='' && MaxDepth='3' && FilterCondition(InnerText=' הוספת מסמך      ', ControlDefinition='class="&#13;&#10;&#9;&#9;&#9;&#9;&#9;&#9', RowIndex='11', ColumnIndex='1', Class='
                            c85 c80', TagInstance='36')"\0</a>
    E, 5212, 13, 2010/09/16, 16:09:20.806, 8706872318, QTAgent32.exe, Playback - [IMAGE] C:\Documents and Settings\oferv\Local Settings\Temp\1\UITestLogs\LastRun\RPFB.png
    \0
    E, 5212, 13, 2010/09/16, 16:09:21.263, 8708512370, QTAgent32.exe, AL: Playback Error: Microsoft.VisualStudio.TestTools.UITest.Extension.FailedToPerformActionOnBlockedControlException: Window 'אשף יצירת מסמך בתיוק אוטומטי -- Webpage Dialog' is blocking the control 4. Please move the window 'אשף יצירת מסמך בתיוק אוטומטי -- Webpage Dialog' or make the control 4 visible and retry the action. Additional Details:
    TechnologyName:  'Web'
    ControlType:  'Cell'
    Id:  ''
    Name:  ''
    TagName:  'TD'
    MaxDepth:  '3'
     ---> System.Runtime.InteropServices.COMException: Exception from HRESULT: 0xF004F003
       at Microsoft.VisualStudio.TestTools.UITest.Playback.Engine.IScreenElement.MouseButtonClick(Int32 x, Int32 y, Int32 nButton, Int32 fEnsureVisible, String bstrKeyModifiers)
       at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.MouseButtonClick(Int32 x, Int32 y, MouseButtons button, ModifierKeys modifierKeys, Int32 ensureVisible)
       at Microsoft.VisualStudio.TestTools.UITest.Playback.ScreenElement.MouseButtonClick(Int32 x, Int32 y, MouseButtons button, ModifierKeys modifierKeys)
       at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinates)
       --- End of inner exception stack trace ---
       at Microsoft.VisualStudio.TestTools.UITesting.Playback.ThrowIfAnotherWindowIsBlockingControl(COMException ex, IPlaybackContext context)
       at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowComException(COMException innerException, IPlaybackContext context)
       at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, IPlaybackContext context)
       at Microsoft.VisualStudio.TestTools.UITesting.Playback.MapAndThrowException(SystemException exception, String actionName, UITestControl uiControl, Point point)
       at Microsoft.VisualStudio.TestTools.UITesting.UITestControl.Click(MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinates)
       at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementation(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
       at Microsoft.VisualStudio.TestTools.UITesting.Mouse.ClickImplementationWrapper(UITestControl control, MouseButtons button, ModifierKeys modifierKeys, Point relativeCoordinate)
    W, 5212, 13, 2010/09/16, 16:09:21.831, 8710495717, QTAgent32.exe, IEDOM : StopSession of the plugin called before StartSession
    W, 5212, 13, 2010/09/16, 16:09:21.831, 8710496546, QTAgent32.exe, UIA : StopSession of the plugin called before StartSession

    can you tell what is the problem?

    thanks

     

    07/شوال/1431 02:16 م
  • Hi

    FailedToPerformActionOnBlockedControlException is thrown when the playback is not able to reach (click/keyboard actions) the control, the control is obscured by some other object e.g., a modal dialog, scrolled out and there is no scroller present in Form/winfow.

    Can you please check if after first action (i.e., clicking on the menu item), there is any dialog box appearing on top of IE window with title 'אשף יצירת מסמך בתיוק אוטומטי -- Webpage Dialog'

    If yes, is it happening only on agent machines as you said the same recording worked fine on your desktop machine.

    07/شوال/1431 02:32 م
  • hi and thanks,

    what i see on the agent machine is the right click on the link, i can also see the menu open but than instead of clicking one of the menu items nothing is happen. the window אשף יצירת מסמך בתיוק אוטומטי -- Webpage Dialog' is actually a pop up window that should be launched right after clicking on of the menu itmes. when i run this script on my desktop machine it run smoothly.

    i also added to the code 1 line before the menu item selection the following:

    object..SearchConfigurations.Add(SearchConfiguration.AlwaysSearch);

    but that didn't helped a thing

    what else can be wrong?

    thanks

    07/شوال/1431 02:44 م