SimulateRealTyping issue

8 posts, 1 answers
  1. kovyar
    kovyar avatar
    42 posts
    Member since:
    Jul 2010

    Posted 21 Dec 2010 Link to this post

    Hi, all.

    I have a test (recorded with WebUI TestStudio QA Edition) which fills a big form (about 10 fields).
    Some fields must be "typed" in because of their strict format (i.e. dates, you must type 12212010 to get 12/21/2010).
    This means that several steps have the property 'SimulateRealTyping' set to 'true'.
    The recorded test then works fine in QA edition.
    When I open the test with WebUI Test Studio Developer Edition (in VS Pro 2008), I can run the test and it also works pretty fine.

    BUT when I convert the test to code (for NUnit), the steps with 'real typing' do not work at all.
    Still the other steps (which do not type, they just set text) do their work without changes.

    Here is the generated code for one of these steps:

    Pages.Name_1.FrameFrmMain.DateField.ScrollToVisible(ArtOfTest.WebAii.Core.ScrollToVisibleType.ElementTopAtWindowTop);
    ActiveBrowser.Window.SetFocus();
    Pages.Name_1.FrameFrmMain.DateField.MouseClick();
    Manager.Desktop.KeyBoard.TypeText("12212010", 150);

    WebAii version is 830.
    The browser is IE 8. It is set up like that: http://www.artoftest.com/support/webaii/topicsindex.aspx

    Best regards,
    Yaroslav Kovtunenko
  2. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 22 Dec 2010 Link to this post

    Hello kovyar,

    I just created a website to test this against with an empty HTML input and one with a value. In both cases, after converting to NUnit, the text was input correctly within the appropriate input field. Are you targeting an element other than HTML input (such as Silverlight)? Is this a modal window that you cannot manipulate? As much data as you can provide on the issue you are reporting would help with re-creating this circumstance.

    Can you provide us with an example page to test against, or an example of the Source for the page so we can re-create this issue? If you are able to provide the project and don't want to do so through the public forums, let me know and I can create a dropbox (private) setup for you to provide the project through. I'll look for your reply.

    All the best,
    Keaegan
    the Telerik team
    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  3. kovyar
    kovyar avatar
    42 posts
    Member since:
    Jul 2010

    Posted 23 Dec 2010 Link to this post

    Hi Keaegan,

    I've recently found the source of the problem: the test works fine only if run with nunit-x86 (we have 64bit testing environment) and fail at physical mouse and keyboard actions if run with nunit.

    As I was running the test through usual nunit.exe, it didn't work. But now we have no problem with it.
    I don't know whether it is caused by our building options (Any CPU) or something else.
    Still the problem doesn't exitst anymore for us.
    Thanks.

    All the best,
    Yaroslav Kovtunenko
  4. Answer
    Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 27 Dec 2010 Link to this post

    Hello Yaroslav,

    Yes, this would possibly cause issue for the following reason; we have a known incompatibility with the 64-bit version of Internet Explorer.

    Also since we don't support the 64-bit iteration for Internet Explorer, we do not support the 64-bit version of NUnit being used with our product either.

    When building the project, change the platform from any CPU to x86. This should force the test to use the 32-bit version of Internet Explorer, and thereby allow the test to run even through your 64-bit environment (so long as the 32-bit of IE is available there as well).

    Don't hesitate to let us know if you begin to experience this issue again.

    Regards,
    Keaegan
    the Telerik team

    Interested in Agile Testing? Check out Telerik TV for a recording of Automated Testing in the Agile Environment
  5. kovyar
    kovyar avatar
    42 posts
    Member since:
    Jul 2010

    Posted 28 Dec 2010 Link to this post

    Hello Keaegan,

    and thanks for your reply.
    I'll definitely make some research about compilation options and tests behavior.
    And, off course I'll notify you if smth like that comes back.

    All the best,
    Yaroslav Kovtunenko

    P.S. I don't know why it happened, but emails that the forum sends me about replies contain wrong links to the threads. For example, the latest one was http://www.telerik.com/community/forums/webui-test-studio-developer-edition/general-discussions/simulaterealtyping-issue.aspx, which leads to error page. Maybe, something has been changed in the CMS.

  6. Keaegan
    Admin
    Keaegan avatar
    126 posts

    Posted 28 Dec 2010 Link to this post

    Hello Yaroslav,

    Thank you for letting me know about this. I have notified our administrative team regarding these links being incorrect. The provided link is mostly correct, and you can use it to locate the correct page by doing the following:

    The link you provided is as follows:

    http://www.telerik.com/community/forums/webui-test-studio-developer-edition/general-discussions/simulaterealtyping-issue.aspx

    We have updated our pages for WebUI Test Studio support to be in the following path:

    http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/general-discussions/simulaterealtyping-issue.aspx

    So, until a change is made, copy the link provided and modify it so that it includes /automated-testing-tools/ in between telerik.com and /community/

    ex.: I receive the following link (http://www.telerik.com/community/forums/webui-test-studio-developer-edition/general-discussions/MYNEWFORUMPOST.aspx) via email when Telerik responds to my forum posting. The provided link will not work correctly, so I copy the link url (right-click the link, choose copy link address) and paste it into the url field for my web browser (but I don't hit 'enter' yet). I then modify it by adding automated-testing-tools after the www.telerik.com, but before the /community. The end result looks like this:

    http://www.telerik.com/automated-testing-tools/community/forums/webui-test-studio-developer-edition/general-discussions/MYNEWFORUMPOST.aspx

    Thank you for bringing this to our attention. For now, please use the above work-around when you receive email updates on your forum posts. We will get this changed as soon as possible so that you only need to click the link to load the page for your forum posting. Thanks for your patience while we look into this.

    Kind regards,
    Keaegan
    the Telerik team

  7. duggirala
    duggirala avatar
    3 posts
    Member since:
    Oct 2014

    Posted 21 Oct 2014 Link to this post

    Hi Admin,

    May I know how to Simulate Real Typing through coded step. The below snippet did not do real typing in the text box.

    object myData = GetExtractedValue("my_sample_text");
    HtmlInputText filldata = Find.ById<HtmlInputText>("textboxid");
    filldata.Text = myData.ToString();

    Please let me know any solution for this scenario.

    Regards,
    Avinash
  8. Boyan Boev
    Admin
    Boyan Boev avatar
    1045 posts

    Posted 23 Oct 2014 Link to this post

    Hello Duggirala,

    After you find the element you should focus it and then type the text:

    filldata.Focus();
    Manager.Desktop.KeyBoard.TypeText("text", 50, 100);

    Hope this helps.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!