In my unit tests I am calling an API whose response is a webpage with buttons and textboxes. Is there a way to simulate click events or keyboard event with the webpage?
The way to go for Browser testing is using a headless browser, like PhantomJS http://phantomjs.org/headless-testing.html
There are instructions available for setting up tests with various test frameworks.
Headless Browsers are similar to "real" Browsers but meant for programmatically controlling them.
Related
I am working on a web application, where I receive a phone call, which is initiated by another web application. To achieve this, I need to open two chrome browsers having two different URLs. I am using cucumber to write scenario and watir webdriver to drive the script. I have implemented Page Object Model as a part of framework. I tried making some changes to support files - i.e., hook.rb, env.rb and driver.rb. But it's not working out. Is there a way to achieve this?
I am trying to see if there is anyway I can programmatically typing into chromium's omnibox via script/automation/etc for Perf testing.
I want to test the following:
1. Client side: for each keystroke in Omnibox, I want to measure the rendering speed of the Omnibox when there are suggestions coming from server side. This is logged in the histogram right now.
2. Server side: for each keystroke in Omnibox, I want to measure the response time. This is also logged in histogram right now.
And we want to run across many keystrokes, with different queries to cover above 2 areas automatically.
I know chromium's test framework Catapult has benchmarks measure the Perf/system health, however the current tests are only for Chrome Android mobile apps. Not for chromium desktop app.
And I don't see any existing tests in Catapult that can control the chromium desktop app's omnibox and simulating typing into the omnibox.
Is there any way I can do this, it does not need to be Catapult framework.
If you find an issue in "rendering" (Which you have not defined as common or technical), who do you expect to report this to for a defect report and a fix on your timeline?
Is there a way to automate a server so that it can open browser at a specific time and input a given email in a form then submit it.
Yes, It can be done by using headless browsers as suggested by #TNU, I have done it using Phantom Js, Now there are many ways you can do this.
Just write a javascript in a file and schedule the job using cron from terminal.
Or you can use casperjs another library written on top of phantom Js.
Or you can use Ghost driver for connecting to phantom headless browser to execute and schedule the scripts.
Yes, you could use headless browsers, which don't have user interfaces and can be controlled programmatically. Check this list for a list of Headless Browsers
simple question: How MS Coded Test UI communicate with browser?
I guess tests communicate with browser through MSAA layer, which has the access to controls of the webpage. True?
But how is it implemented, how the browser exactly do "Click Element"? (I have experience only with selenium and webdriver, which click to a graphic layer.)
And how is it with cross-browser (only IE and Firefox? [source 2])
Which test tools also integrate MSAA inside? I know about TestComplete for flash pages (https://support.smartbear.com/testcomplete/docs/app-testing/web/flash-flex/approaches/choosing.html ... HP UFT?)
Source (https://www.google.cz/search?q=software+testing+with+visual+studio+2010+levinson+pdf&*, page 136): Automation in Visuol Studio is through three technologies: MSAA, UIA and IE DOM. MSAA is older but still used in web automation.
About web testing and MSAA talks also this source (http://weblab.isti.cnr.it/w3c/talks/2008/wsb08inclusion/k1-gibson.pdf)
I simply cant imagine how it works (even when i saw code). Please answer as simple as you can.
I am writing a project using polymer. Right now, if a browser doesn't support it most of the page is just blank. Is there a way to quickly if the users browser supports polymer and if not, prompt them to use a modern browser?
You can use the page http://caniuse.com/ and ask for the technology that is being used in the framework you want to implement, Shadow dom and Custom elements in this case I think that are the main things that polymer uses and that don't allow this framework to be used all over the place in any browser