I have a client that would like to run an automated test in an environment that captures full page screenshots of data on a web app and use those baseline images to compare against the same screens of a web app called from a VM for a subsequent test run. Can UFT do this, and how?
Check out bitmap checkpoints and see if this fits your needs.
If not you can use CaptureBitmap and do with the image whatever you want.
Related
I want to automate a Webswing session to run in unattended mode. Webswing is a web server that allows applications to run within the web browser. So there is no access to UI elements that the bot could access.
Therefore, I initially worked with image recognition (e.g., using the "Wait for image" and "Extract text with OCR" actions) in attended mode. Now I would like to switch to unattended mode. Does anyone have experience with this and know if the image recognition actions in a session like Webswing can be applied to unattended robots or are there other commands I can use for this use case?
Yes, however it is worth keeping in mind that the screen size needs to be set to the size you run the flow in when attended.
See: how to set screen resolution unattended mode
Appetize.io or Browserstack.com can't access it normally in China, so I want to implement a tool myself. Like Appetize (or Browserstack), I can use my different versions of mobile devices to debug my webpage online, but I don't know where to start. Thank you.
Look at the Network Activity tab of Chrome Dev Tools while you are on the demo page for Appetize.io. You will see a bunch of JPEG images being streamed to the browser as you interact with the device "screen" on the browser. Most likely an emulator/simulator is fired up in the backend and screenshots are taken at regular intervals and streamed to the browser.
That would be a good start. The next thing to look at would be how to capture input (typing and screen taps) on the browser and then "execute" those type/taps on the emulator in the backend.
I am looking into Xcode and Xcui for web app and cannot get it work. to start up recording, build or whatsoever it needs a valid executable which I don't have since i am not building an app. is there any way to launch Safari as the app and then record it and run tests?
i know there's Appium and other tools but wondering if it's possible and if so I would be keen to implement some in swift.
NOTE: This is a super hacky way to get it done:
I think you would have to create a quick application that holds a web view in the app, that launches to your respective web page.
You can write automated tests for this app which will simply land you on your web page
You will not have access to elements, like table views, cells, or anything in the XCUIelement tree
You will have to do everything based on frames and coordinates
You can determine where all your elements are and set them up as variables and call them like this:
`let myButton = XCUIApplication().windows.element(boundBy: 0).coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.30))`
myButton.tap()
Not ideal but if you want to use swift to learn and move things around its possible
As far as XCUI testing is concerned, it was basically made to test the integration flow of an iOS app. As a result it can ONLY test native view controllers. As far as the web view is concerned, it should be tested at the web level and not at the application level.
I would like to embed dojo/robot tests is java application.
Java application would use java-webengine for load web pages and for embed dojo script to these pages. Java-webengine gives possibility run java script.
I understand, that DOH use system mouse and keyboards events. User of my application does not see web browser page (browser running in background by webengine).
I have a couple of questions:
1. What happen with mouse pointer during DOH test execution?
2. It is possible to run DOH tests in my application internally(in the background)?
3. What happens if user will type on the keyboard or move mouse during test execution? (For instance user may switch for other application, e.g. Microsoft Word.)
Thanks!
A few things --
Dojo tests can be run from the command-line using node.js or Rhino.
I have created a DOH test suite that is backed with a Java web server and that works well, BUT...
To clarify, not all of the DOH robots use system mouse & keyboard events, only 1 particular robot (robotx) simulates actual user input. When using robotx, the mouse & keys behave as directed by the tests. If you mouse off the browser, the tests will be aborted (an alert comes up notifying you of this). Therefore, robotx cannot be run in the background because it is actually interacting with the browser.
You may have some luck using the other robots coupled with node.js or Rhino. The key concept is that you should be looking for some "headless" browser testing scenario, which is generally what Rhino handles (I believe Node can do this as well) while avoiding use of robotx.
Basically, as long as you are not using robotx (the one that actually takes control of UI) you should be able to start the tests & minimize the browser or use a headless browser engine.
I'm making an app where I would like to generate a new tile from inside the app, and then change it - no web service involved, and no need to change it when the app is not running.
Anyone know how to do this?
Cheers!
as #Derek said, you can update the tile using the tile schedule, but will take an hour minimum before the phone updates the tile.
i have written a tutorial on how to update the tile instantly here:
http://www.diaryofaninja.com/blog/2011/04/03/windows-phone-7-live-tile-schedules-ndash-executing-instant-live-tile-updates
basically it involves opening a push/toast update channel and then getting the phone to send "itself" a live tile update request. this will trigger the phone to go and get the tile "right now"
hope this helps
You can update the background image for a Live tile by using the ShellTileSchedule as documented in How to: Update Your Tile Without Push Notifications for Windows Phone. However, the image that is used for that background must come from a remote location, it cannot be provided directly by your application (unless you generate the image and send it to your own web service).
If you do go down the Microsoft Push Notification Services route, you may want to take a look at the Windows Push Notification Server Side Helper Library provided by the Windows Phone team.
You can generate and send a tile push notification message from the applicaiton itself. Not sure if it will work with an image in the app though. - Let us know if you try.
Thanks for the info!
It won't be an image from the app, as the xml files I'm downloading are pointing to the correct image. Not sure about the format, but I guess setting up my own server to proxy the request and resize the icon as needed wouldn't be too hard.
But it's really sad we cannot manipulate the tile image for 'this' from within our own app...