Can eggplant captures dynamic text on a image?/on a object
if yes how it works ?
If i understand correctly Eggplant is image comparision based tool; when you are caputuring screens and comparing with expected result
how the dynamic text can be caputures on one image
example is balance on any applicaiton
could any one explain?
Comments: from the previous post i just learnt that
there is a option called "text properties " what does it do
how algorithem works
The simplest and most effective way to capture text from the screen is to use the clipboard. Eggplant can directly access the text contents of the clipboard on the system under test, so if you select the text and copy it then your script can access it to compare to the expected value. Many text values can be copied to the clipboard, including some that aren't editable or obviously copyable, so this can be a very effective way to validate a result.
If that doesn't work there are other techniques that can be used. For example, to see if the expected result is shown after an operation, you can generate an image of the expected value using the Text Image Generator capability and look to see if it's shown on the screen. This is where the text properties that you mentioned come in -- they are used to specify the text characteristics so that Eggplant can correctly generate an image of the text in order to find it on the screen.
Doug Simons, Principal Developer
TestPlant, makers of eggPlant, the Cross-Platform GUI Testing Tool http://www.testplant.com
Here's a simple test to type something, then look for it on the screen. On the machine I'm testing, I have a text editor open.
TypeText "Now is the time", return
put everyImageLocation(Text:"Now is the time", TextStyle:"Default")
This spits out everywhere on the screen that "Now is the time" shows up on the screen. Note the "TextStyle" set to "Default". You can pre-define or on-the-fly define text styles, which include properties TextFont, TextSize, TextColor, TextBackgroundColor, Bold, Italic and Underline. Eggplant gives you a number of these by default (Mac uses Lucida Grande, PC uses Tahoma font, for example), and you can obviously create your own.
"The best way to predict the future is to invent it" - Alan Kay