test automation tools: qf-test and selenium

19
Test Automation Tools: QF-Test and Selenium by P. Kratzer / P.Sivera Software Engineer ESO

Upload: kamil

Post on 03-Feb-2016

86 views

Category:

Documents


0 download

DESCRIPTION

Test Automation Tools: QF-Test and Selenium. by P. Kratzer / P.Sivera Software Engineer ESO. Introduction to QF-Test. QF-Test is a GUI test tool for Java and web apps developed by German company Quality First Software GmbH (QFS) Vendor web site: http://www.qfs.de/en/ - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Test Automation Tools:  QF-Test and Selenium

Test Automation Tools: QF-Test and Selenium

by

P. Kratzer / P.Sivera

Software Engineer

ESO

Page 2: Test Automation Tools:  QF-Test and Selenium

Introduction to QF-Test

• QF-Test is a GUI test tool for Java and web apps developed by German companyQuality First Software GmbH (QFS)

• Vendor web site: http://www.qfs.de/en/• QF-Test pages:

http://www.qfs.de/en/qftest/index.html• Feature checklist:

http://www.qfs.de/en/qftest/checklist.html

Page 3: Test Automation Tools:  QF-Test and Selenium

Introductions & Demos

• Demo screenshots:http://www.qfs.de/en/qftest/demos.html

• Demo video (length 8:40 min): http://www.qfs.de/en/qftest/demovideo.html

• Standard QF-Test library: http://www.qfs.de/en/qftest/stdlib.html

Page 4: Test Automation Tools:  QF-Test and Selenium

Typical workflowto create tests with QF-Test

• Create new test suite• Define application (SUT) startup• Run SUT (system under test) in QF-Test• In recording mode: perform manual actions

(includes component recognition)• Check, adapt, parameterize recognized

components (menus, windows, buttons, …)• Use recorded actions as basis for new

procedure(s), parameterize, …• Define new test case, specify dependencies and

call required procedures

Page 5: Test Automation Tools:  QF-Test and Selenium

ALMA-OT Test Implementation

Page 6: Test Automation Tools:  QF-Test and Selenium

Test Procedures

Page 7: Test Automation Tools:  QF-Test and Selenium

Test Procedure Detail

Page 8: Test Automation Tools:  QF-Test and Selenium

Test Documentation

Page 9: Test Automation Tools:  QF-Test and Selenium

Package Documentation

Page 10: Test Automation Tools:  QF-Test and Selenium

Short Demo

• Video to show a test set while it runs

• http://www.eso.org/~psivera/VideoOtAndQfTest/OtAndQfTestVideoHigherVolumeImproved.html

Page 11: Test Automation Tools:  QF-Test and Selenium

Test Results (Report)

Page 12: Test Automation Tools:  QF-Test and Selenium

Test Results (Run-Log)

Page 13: Test Automation Tools:  QF-Test and Selenium

Developers support• Intervention on the code:

– call during the initialization phase to the method setName() for all GUI-elements

– event on a thread other than the AWT event dispatch thread (COMP-5141 and COMP-2905) (see http://en.wikipedia.org/wiki/Event_dispatching_thread)

• when important changes in the GUI are planned and are being developed. The sooner we are informed, the better.

Page 14: Test Automation Tools:  QF-Test and Selenium

Problems

• GUI test & QF-Test experience required

• Adaptations to client changes

• Component recognition issues, threads handling (cooperation with developers)

• QF-Test covers basic functionalitybut still requires a lot of manual work

Page 15: Test Automation Tools:  QF-Test and Selenium

Conclusions

• Once the manual work is done and the SUT is stable enough so that it does not require a lot of changes at every new release, the automated tests reveal to be very useful as regression tests.

• They are configurable, therefore can be run in whatever environment with whatever db and user (provided QFTest licence is available)

Page 16: Test Automation Tools:  QF-Test and Selenium

Selenium• http://seleniumhq.org/ : Introduction,

Documentation, Installation and Download, Tutorials…

• Example of a demo:– http://vimeo.com/4671653

• Products: – Selenium IDE – Selenium RC– Selenium 2.0 – ...

Page 17: Test Automation Tools:  QF-Test and Selenium

Selenium IDE

• Add-On for Firefox

• Record and Replay Tool

• Access to Selenium commands

• Save test cases in Selenese or many other programming languages

Page 18: Test Automation Tools:  QF-Test and Selenium

Selenium RC

• Selenium RC components are:– The Selenium Server which launches and kills

browsers, interprets and runs the Selenese commands passed from the test program, and acts as an HTTP proxy, intercepting and verifying HTTP messages passed between the browser and the AUT.

– Client libraries which provide the interface between each programming language and the Selenium RC Server.

Page 19: Test Automation Tools:  QF-Test and Selenium

Selenium and Zk

• ZK Web Applications can be a challenge with Selenium because ZK dynamically generates element IDs

• Workaround: not fully satisfactory

• QFTest: just starting with support for Zk

• Other products: Sahi: – http://docs.zkoss.org/wiki/

Making_ZK_Functional_Tests_With_Sahi