Jump to content
Wikipedia The Free Encyclopedia

Galen Framework

From Wikipedia, the free encyclopedia
This article is an orphan, as no other articles introduce links to this page from related articles ; try the Find link tool for suggestions. (September 2016)
This article contains instructions, advice, or how-to content . Please help rewrite the content so that it is more encyclopedic or move it to Wikiversity, Wikibooks, or Wikivoyage. (March 2023)
Galen Framework
Original author(s) Ivan Shubin
Initial release2013 (2013)
Stable release
2.4.4 / March 15, 2019; 5 years ago (2019年03月15日)[1]
Repository
Written inJava
Operating system Cross-platform
Available inEnglish
Type Test automation
License Apache License v2.0
Websitegalenframework.com

Galen Framework is an open source layout and functional testing framework for websites, written in Java, which allows testing the look and feel of responsive websites. It has its own special language Galen Specs for describing the positioning and alignment of elements on a Web page. It is based on Selenium and could be executed via Selenium Grid for cross-browser testing [2]

Main features

[edit ]
  • Testing location of elements on page
  • Image comparison for selected area
  • Functional testing
  • Applying TDD approach in Web development [3]

Galen Specs Language

[edit ]

Galen Specs language consists of the following entities:

  • Page object locator definitions
  • Tagged sections
  • Test objects
  • Test specs
# Declaring objects
@objects
 header id header
 icon css img.icon
 text xpath //h1
# Declaring a section
= Header = 
 @on *
 header:
 inside screen 0px top left right
 height ~ 70px
 header.icon:
 width 34px
 height 34px
 centered vertically inside header
 inside header 7 to 10px left
 @on desktop
 header.text:
 centered vertically inside header
 right of header.icon 5 to 15px
 @on mobile
 header.text:
 absent

References

[edit ]
  1. ^ "Releases · Galenframework/galen". github.com. Retrieved 2021年04月07日.
  2. ^ "Cross-Browser Layout Testing With Galen Framework And Sauce Labs". SauceLabs. Retrieved January 8, 2015.
  3. ^ "Visual Test-Driven Development For Responsive Interface Design". Smashing Magazine. 7 April 2015. Retrieved April 7, 2015.
[edit ]

AltStyle によって変換されたページ (->オリジナル) /