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

SimulateRealTyping issue

7 Answers 191 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
kovyar
Top achievements
Rank 1
kovyar asked on 21 Dec 2010, 03:20 PM
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

7 Answers, 1 is accepted

Sort by
0
Keaegan
Telerik team
answered on 22 Dec 2010, 11:37 PM
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
0
kovyar
Top achievements
Rank 1
answered on 23 Dec 2010, 01:05 PM
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
0
Accepted
Keaegan
Telerik team
answered on 27 Dec 2010, 08:49 PM

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
0
kovyar
Top achievements
Rank 1
answered on 28 Dec 2010, 03:20 PM
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.

0
Keaegan
Telerik team
answered on 28 Dec 2010, 08:54 PM

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

0
duggirala
Top achievements
Rank 1
answered on 21 Oct 2014, 06:41 PM
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
0
Boyan Boev
Telerik team
answered on 23 Oct 2014, 02:09 PM
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
 
Tags
General Discussions
Asked by
kovyar
Top achievements
Rank 1
Answers by
Keaegan
Telerik team
kovyar
Top achievements
Rank 1
duggirala
Top achievements
Rank 1
Boyan Boev
Telerik team
Share this question
or