Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Scripting & Automation
  New Posts New Posts RSS Feed - Automated Testing
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedAutomated Testing

 Post Reply Post Reply
Author
Message
bbeswick View Drop Down
Newbie
Newbie


Joined: February 03 2004
Location: United States
Status: Offline
Points: 1
Post Options Post Options   Thanks (0) Thanks(0)   Quote bbeswick Quote  Post ReplyReply Direct Link To This Post Topic: Automated Testing
    Posted: February 03 2004 at 5:05am
I am interested in using AccuTerm 2K2 to assist us with automated testing of our character-based application. We are using Rational Robot. The problem is that Robot doesn't "see" the characters on the AccuTerm window. My idea is: write a script in AccuTerm that will open an auxillury window that will contain:
- fill-ins to accept upper-left and lower-right screen coordinates
- a "Get" button that, when clicked, fetches the text block from the screen and places it in a Windows-style editor so Robot can inspect the contents of the editor.

Has anyone tried to do such a thing? This doesn't sound horrably hard but I'm not really sure how to start; does anyone care to privide me with some hints/clues?

Any help you could provide is appreciated,
Bryan
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post Posted: February 05 2004 at 5:32am
You could certainly use a script to display a dialog box with col & row text boxes and get & put buttons and a text box for the screen contents. The problem with this is that the dialog is modal, which I think will keep the terminal session from responding while it is displayed.

Another approach that you might want to consider is to create a simple VB application that uses Automation to communicate with AccuTerm. The VB form could contain the same components, but since it is a separate application it would not prevent AccuTerm from responding. The VB app can access AccuTerm by using the GetObject( ) function to get a reference to the most recently opened instance of AccuTerm. This reference is for the AccuTerm object, and from it you can access the ActiveSession object. From the session object you can use the GetText( ) method to retrieve text from the terminal screen and the WriteText method to send data back to the host.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.