Wednesday, May 22, 2013

[Ann]: Cobra 3.5 - Windows GUI test automation tool


New features:
* ooldtp python client
* Support setting text on combo box
* Added simple command line options
* Support state.editable in hasstate
* Handle valuepattern in click API
* Support ToolBar type on click
* Write to log file if environment variable is set (set LDTP_LOG_FILE=c:\ldtp.log)
* Support control type Table, DataItem in Tree implementation
* Added scrollbar as supported type

New API:
* MouseMove
* setcellvalue
* guitimeout
* oneup
* onedown
* oneleft
* oneright
* scrollup
* scrolldown
* scrollright
* scrollleft

Bugs fixed:
* Fix to support taskbar with consistent index
* istextstateenabled API
* Fallback to object state enabled if value pattern is not available
* Fix to support InvokePattern on Open button
* Use width, height if provided while capturing screenshot
* Work around for copying text to clip board
* QT 5.0.2 specific changes
* Check errno attribute to support cygwin environment
* Fix keyboard APIs with new supported key controls (+, -, :, ;, ~, `, arrow up, down, right, left)
* Don't grab focus if type is tab item

Java client:
* Fixed selectRow arguments
* Fixed compilation issues
Python client:
* Fix optional argument issue in doesrowexist
C# client:
* Added new APIs (scrollup, scrolldown, scrollleft, scrollright, oneup, onedown, oneleft, oneright)
Ruby/Perl client: No changes

Credit:

Nagappan AlagappanJohn Yingjun LiHelen WuEyas Kopty, VMware colleagues

Please spread the word and also share your feedback with us (email me).

About LDTP:

Cross Platform GUI Automation tool Linux version is LDTP, Windows version is Cobra and Mac version is PyATOM.

* Linux version is known to work on GNOME / KDE (QT >= 4.8) / Java Swing / LibreOffice / Mozilla application on all major Linux distribution.
* Windows version is known to work on application written in .NET / C++ / Java / QT on Windows XP SP3 / Windows 7 / Windows 8 development version.
* Mac version is currently under development and verified only on OS X Lion. Where ever PyATOM runs, LDTP should work on it.

Download source / binary (Windows XP / Vista / 7 / 8)
System requirement: .NET 3.5, refer README.txt after installation

Documentation references: For detailed information on LDTP framework and latest updates visit http://ldtp.freedesktop.org

LDTP API doc / Java doc
Report bugs

2 Comments:

At Friday, June 12, 2015 at 3:51:00 AM PDT, Blogger abi said...

Hi,

I am trying to automate a desktop application. I got the object list for a Command Prompt, i got an object called "uknVertical" as scrollbar.

But when called verifyScrollbar(uknVertical), the method is always returning 0 and when i call scrolldown("") i am getting the below error.

Exception in thread "main" com.cobra.ldtp.LdtpExecutionError: unsupported method called: scrolldown
at com.cobra.ldtp.Ldtp.doAction(Ldtp.java:248)
at com.cobra.ldtp.Ldtp.scrollDown(Ldtp.java:2461)
at com.ldtp.cmdCapture.main(cmdCapture.java:20)


Could you please let me know if i am invoking the function correctly.

Please find my code snippet below.

public class cmdCapture {

public static void main(String[] args) {

String WinName = "Command*";
Ldtp ldtp = new Ldtp(WinName);
// ldtp.launchApp("Command*");

String[] obj = ldtp.getObjectList();

for (String str : obj)
System.out.println(str);

System.out.println(ldtp.verifyScrollbar("uknVertical"));

ldtp.scrollDown("uknVertical");

}

}

 
At Friday, June 19, 2015 at 11:34:00 PM PDT, Blogger Nagappan said...

Please send email

 

Post a Comment

<< Home