Download presentation
Presentation is loading. Please wait.
Published byMichelle Montgomery Modified over 10 years ago
1
GUI Testing and Rational Robot Jerzy.Nawrocki@put.poznan.pl www.cs.put.poznan.pl/jnawrocki/models/ Models and Analysis of Software Lecture 1 Copyright, 2003 Jerzy R. Nawrocki
2
Introduction The main problem with test-first coding is GUI testing. [ IEEE Soft ]
3
Introduction – What is Rational Robot? Baseline Robot
4
Introduction – Rational Robot and test-first coding Remarks: When you start testing an application is ready. Rational Robot is for regression testing, not for test-first coding. The only chance for test-first coding is SQABasic.
5
Testing HTML Applications StartBrowser [ URL$, ] [ WindowTag= Name$ ] Starts the browser, enables HTML testing, and loads a page if specified. Web page address Identifies this instance of the browser StartBrowser "http://www.cs.put.poznan.pl/jnawrocki/models/", "WindowTag= Parent"
6
Testing HTML Applications Browser action$, recMethod$, parameters$ Performs an action on a Web browser Back, Forward, NewPage, SetFrame, CloseWin,.. Wait= % default time is 30s Browser NewPage, "" HTMLTitle= $, Name= $, "".. Wait for the topmost frame
7
Testing HTML Applications HTML action%, recMethod$, parameters$ Performs a mouse action on an HTML tag. Click,.. Coords= x, y HTML Click, "Name= Autor", "Coords= 10,12" HTMLTitle= $, Name= $, ""..
8
Example
9
Example
10
Example NAME= "komendy" NAME = "tablica NAME= "Ogloszenia" Dodaj ogłoszenie Tablica ogłoszeń
11
Example NAME= "komendy" NAME = "tablica NAME= "Data" NAME= "Autor" NAME= "Tekst" NAME="Submit"NAME="Reset" Dodaj ogłoszenie Tablica ogłoszeń
12
Example Sub Main Dim Result As Integer 'Initially Recorded: 03-03-12 08:56:25 'Script Name: test7........................... End Sub
13
Example NAME= "komendy" NAME = "tablica NAME= "Ogloszenia" Dodaj ogłoszenie Tablica ogłoszeń
14
Example StartBrowser "C:\Jurek\Teaching\models\index.html", "WindowTag=WEBBrowser" Window SetContext, "WindowTag=WEBBrowser", "" Browser SetFrame,"Type=HTMLFrame;HTMLId=komendy","" Browser NewPage,"","" HTMLLink Click, "Type=HTMLLink;HTMLText=Dodaj ogłoszenie", ""
15
Example NAME= "komendy" NAME = "tablica NAME= "Data" NAME= "Autor" NAME= "Tekst" NAME="Submit"NAME="Reset" Dodaj ogłoszenie Tablica ogłoszeń
16
Example Browser SetFrame,"Type=HTMLFrame;HTMLId=tablica","" Browser NewPage,"","" HTMLDocument Click, "Type=HTMLDocument;Index=1", "Coords=25,14" InputKeys "{TAB}2002-12- 31{TAB}J.Nawrocki{TAB}1.IV.03 nie ma wykladu z Mode" InputKeys "ls and Analysis of Software."
17
Example NAME= "komendy" NAME = "tablica NAME= "Data" NAME= "Autor" NAME= "Tekst" NAME="Submit"NAME="Reset" Dodaj ogłoszenie Tablica ogłoszeń
18
Example Browser SetFrame,"Type=HTMLFrame;HTMLId=komendy","" HTMLLink Click, "Type=HTMLLink;HTMLText=Tablica ogłoszeń", ""
19
Example NAME= "komendy" NAME = "tablica NAME= "Ogloszenia" Dodaj ogłoszenie Tablica ogłoszeń
20
Example Browser SetFrame,"Type=HTMLFrame;HTMLId=tablica","" Browser NewPage,"","" Result = HTMLTableVP (CompareData, "Type=HTMLTable;Index=1", "VP=Weryfikacja autora") Result = HTMLTableVP (CompareData, "Type=HTMLTable;Index=1", "VP=Weryfikacja daty")
21
Baseline files TestDatastore\DefaultTestScriptDatastore\TMS_Script\vp\t est7.Weryfikacja autora.base.grd
22
Contents 1. Introduction 2. Reconciling XP with documentation 3. Multiple customer representatives 4. Modifying the XP lifecycle 5. Early evaluation results 6. Conclusions
23
Summary Test-first coding for GUI is a real problem. Test-first coding for GUI is a real problem. Rational Robot is for regression testing, not for test-first coding. Rational Robot is for regression testing, not for test-first coding. SQABasic is an interesting language but it is not clear how to use it for test-first coding of GUI. SQABasic is an interesting language but it is not clear how to use it for test-first coding of GUI. Further research is necessary to solve the problem. Further research is necessary to solve the problem.
24
Bibliography Using Rational Robot, Version 2001.03.00 Using Rational Robot, Version 2001.03.00 SQABasic Language Reference, Version 2001.03.00 SQABasic Language Reference, Version 2001.03.00
25
Questions?
Similar presentations
© 2024 SlidePlayer.com Inc.
All rights reserved.