# Default browser # ~~~~~~~~~~~~~~~~~~~~~~~~ # A browser that should be used by defaultincase it was not specified in galen test galen.default.browser=chrome
➜ galenDemo galen check home-page.gspec --url http://samples.galenframework.com/tutorial1/tutorial1.html --size 640x480 --htmlreport . ======================================== Test: home-page.gspec ======================================== Starting ChromeDriver 2.25.426935 (820a95b0b81d33e42712f9198c215f703412e1a1) on port 7505 Only local connections are allowed. Nov 28, 2016 3:15:04 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Attempting bi-dialect session, assuming Postel's Law holds true on the remote end Nov 28, 2016 3:15:05 PM org.openqa.selenium.remote.ProtocolHandshake createSession INFO: Detected dialect: OSS check home-page.gspec --url http://samples.galenframework.com/tutorial1/tutorial1.html --size 640x480 --htmlreport . -Dwebdriver.chrome.driver=/usr/local/lib/node_modules/galenframework-cli/node_modules/chromedriver/lib/chromedriver/chromedriver = Main section = header: height 100px
======================================== ---------------------------------------- ======================================== Suite status: PASS Total tests: 1 Total failed tests: 0 Total failures: 0
查看测试报告
至此,使用Galen进行单个页面布局的测试就已经结束了。下面再进行一次测试修改元素高度
修改header元素的height是否为40px,home-page.gspec
1 2 3 4 5
@objects header id header = Main section = header: height 40px