Automating and Testing Advanced Web Technologies - PowerPoint PPT Presentation

1 / 12
About This Presentation
Title:

Automating and Testing Advanced Web Technologies

Description:

Advanced Web Technologies. Typical advanced (non-HTML) technologies include: ... Works with every advanced technology. Sending text ... – PowerPoint PPT presentation

Number of Views:60
Avg rating:3.0/5.0
Slides: 13
Provided by: iop5
Category:

less

Transcript and Presenter's Notes

Title: Automating and Testing Advanced Web Technologies


1
Automating and TestingAdvanced Web Technologies
2
Advanced Web Technologies
  • Typical advanced (non-HTML) technologies include
  • AJAX
  • Sun Java Applets
  • Adobe Flash Applets
  • MicroSoft Silverlight
  • ActiveX Elements
  • One Solution DirectScreen
  • DirectScreen simulates real user mouse and
    keyboard activity.
  • Works with every advanced technology.

3
Sending text
  • The DirectScreen CLICK command can send
    keystrokes to the web browser via the CONTENT
    attribute In addition to regular text, it can
    send special keys ENTER       ENTER
    TAB      TAB DEL      DEL
    BACKSPACE   BACKSPACE LEFT      LEFT
    RIGHT      RIGHT Example DS
    CMDCLICK X200 Y263 CONTENT"helloENTER"

4
Winclick Text Handling Screenshot
5
Comparison CLICK DirectScreen CMDCLICK
What is the difference between DirectScreen (DS)
and the other TAG/CLICK commands?
  • The DirectScreen commands operate on the visible
    part of the web page only, just a like human
    would do with a mouse. Thus DS CMDCLICK X1 Y
    400 will always click on the specific part of the
    browser window. If the web page is scrolled, the
    click hits another part of the web page.  
  • The HTML based CLICK commands operates on the
    complete browser web page (HTML). So CLICK X1 Y
    980 will always click on the specific HTML
    element at this position of the page regardless
    whether the element is currently visible in the
    browser window or not. So whether or not the web
    page is scrolled, a specific X/Y combination
    always hits the same part of the web page.  
  • HTML based clicks can be used to position a page
    correctly for DirectScreen!

6
Scroll into View Screenshot - Start
7
Scroll into View Screenshot Page Scrolled
8
Scroll into View Screenshot Text Entered
9
Scroll into View - Macro
VERSION BUILD6120323 TAB T1 TAB
CLOSEALLOTHERS URL GOTOhttp//www.123flashch
at.com/ WAIT SECONDS2 SIZE X559 Y465
TAG POS1 TYPEFONT ATTRTXTPureltSPgtJavaltSPgtChat
ltSPgtServer DS CMDCLICK X203 Y383 CONTENT
DS CMDCLICK X203 Y383 CONTENTItltSPgtworks! WAI
T SECONDS2
Record a TAG command below chat window.
10
Simulate Mouse Over Events
DirectScreen automatically records and simulates
mouse-over events DS CMDMOVETO X200 Y263 
You can use this "mouse over" event to automate
Javascript based menus. The same technique
applies to mouseover and mousemove events in
Java, Silverlight or Flash/Flex applets.
11
Automating and Testing Flash Applets
  • DirectScreen can also be used to automate web
    pages with Flash-Applets.
  • You can also send text to Flash applets
  • Typical problem Flash applets may take an
    unknown time to load and initialize, but do not
    signal their status to outside world
  • Solution 1 Use WAIT SECONDSltxgt statement. Can
    be inserted automatically by using Record at
    original speed setting. Works, but can not be
    used for performance testing due to artificial
    delay.
  • Solution 2 (Better) Use IMAGESEARCH to check if
    applet is loaded completely. Works well for
    performance testing Flash applets.

12
Demo DirectScreen
  • Real world examples
  • Javascript Event Mouseover http//www.telecom.co.
    nz
  • Java chat http//www.parachat.com
  • Flash chat http//www.123flashchat.com/
  • Java http//www.stockapplets.com/currency-flaconv
    erter/
  • File upload http//validator.w3.org/file-upload.h
    tml
  • Test pages at iopus.com
  • http//www.iopus.com/iim/demo/v6/flash/
  • http//www.iopus.com/iim/demo/v6/javascript-menu/
  • http//www.iopus.com/iim/demo/v6/file-upload.htm
Write a Comment
User Comments (0)
About PowerShow.com