Error on invoke script event command

10 posts, 0 answers
  1. Yuriy
    Yuriy avatar
    13 posts
    Member since:
    May 2015

    Posted 08 Jun 2015 Link to this post

    Hi,

    I have the test steps below:

    - click button “Add user” - appears new row for adding data

    - fill all required fields

    - click "Add" link to add new user. http://joxi.ru/GrqyRR3i0B3Drz (http://joxi.ru/5mdQDDwfdlba21  <a href="javascript:Grid1_insertRow();"></a>)

    Currently my application under test behavior is after clicking “Add” link, a JavaScript is called to adding the data

    In my test script, I used:

    Manager.Desktop.Mouse.Click(MouseClickType.LeftClick, Pages.KudzuCallCenter.AddLink.GetRectangle()); http://joxi.ru/bmovllaF1Gp9ry

     But I've got following error:

    d:\Telerik\CPK\WebTest.tstest.cs: Line 85: (CS0012) The type 'System.Drawing.Rectangle' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
    d:\Telerik\CPK\WebTest.tstest.cs: Line 85: (CS0012) The type 'System.Drawing.Point' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.

    http://joxi.ru/nAy9yy7uRqpPAZ

     How can I fix this problem?

     

  2. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 08 Jun 2015 Link to this post

    Hi Yuriy,

    You must add an assembly reference to the Windows DLL "System.Drawing.dll" in your test project. You should be able to find this DLL in "C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0".

    Let me know if you have further problems.

    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  3. Yuriy
    Yuriy avatar
    13 posts
    Member since:
    May 2015

    Posted 08 Jun 2015 in reply to Cody Link to this post

    Thank you for your fast answer!
    By means of your advice I could avoid errors which were before.
    But unfortunately, when I am executing test - after clicking "Add" link - row with new user isn't displays.
    For clicking link I use following code step: Manager.Desktop.Mouse.Click(MouseClickType.LeftClick, Pages.KudzuCallCenter.AddLink.GetRectangle()); 

    Test is passed, but new user isn't added.

    If you need more information just let me know.

  4. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 08 Jun 2015 Link to this post

    Hi Yuriy,

    I can think of two possible reasons why the new row isn't being added as expected:

    1) The mouse is clicking the wrong spot. If you watch the test very closely while it's running do you see the mouse move to the right spot to click? It could be way off, such as moving to the upper left corner of the browser window, or just slightly off the link such that it's not clicking just the right spot.

    2) It's clicking too soon, before the application is ready to recognize and act on the click. Again watching the browser as the test runs should show whether or not this is the case. If you see the mouse moving and the click happening while the browser is still busy you will need to add a delay of some kind before the click step.


    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  5. Yuriy
    Yuriy avatar
    13 posts
    Member since:
    May 2015

    Posted 17 Jun 2015 in reply to Cody Link to this post

    Hello Cody

    I've tried to do some changes in my test, but they didn't help.

    You can see some screen from my test in atttachments

  6. Yuriy
    Yuriy avatar
    13 posts
    Member since:
    May 2015

    Posted 17 Jun 2015 in reply to Yuriy Link to this post

    How can I provide private access for you to web site and my project?
  7. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 18 Jun 2015 Link to this post

    Hello Yuriy,

    Thank you for the additional information. It's too bad trying to do the mouse click did not help. So it's still a mystery why it's not working as expected.

    What some of our customers have done is provide to us a URL that we put into a browser to connect your application hosted internally to from our machine, but their IT department has filtered by our IP address to keep it private. My public IP address to filter on is 72.177.108.37.

    Let me know if this can be setup easily. If not there may be another way.


    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
  8. Yuriy
    Yuriy avatar
    13 posts
    Member since:
    May 2015

    Posted 22 Jun 2015 in reply to Cody Link to this post

    Thank you for your answer!

    I'll know from my superiors if it is possible.

  9. Yuriy
    Yuriy avatar
    13 posts
    Member since:
    May 2015

    Posted 22 Jun 2015 in reply to Yuriy Link to this post

    How can I provide you required credentials?

    And sent project details?

  10. Cody
    Admin
    Cody avatar
    3354 posts

    Posted 22 Jun 2015 Link to this post

    Hi Yuriy,

    Create yourself a new Support ticket and put all the information in there. Support tickets, unlike this public forum post, are private between you and Telerik technical support. Everything you put into a support ticket is considered confidential information and will be protected from the outside world.


    Regards,
    Cody
    Telerik
     
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top