Thursday, September 23, 2010

How to get text from FlexElement using RiaTest

Find below the solution to get text from any element from Flex window:

Suppose you have an element to get text from. First find it’s parent element and locate your targeted element by any element property (id, class, location ).
e.g.

var confirmationText = FlexCanvas("Home Page")->new Locator({id:"messages"})=>text;

to check value returned:
trace(confirmationText)


Cheers!

Wednesday, September 15, 2010

Automatic mail generation with attachment irrespective of development language

Hi

I came across a very old and very interesting tool called 'BLAT' which facilitate to send an email with attachment. Using BLAT you need not to worry about the development language.
BLAT provides blat.lib, blat.exe and blat.dll so we can use whatever we want.

I use EXE file and can use this either from ANT or command line. following is an example to use it via ANT:




cheers!
Vaibhav