Lotte無圖形化瀏覽器測試工具
Lotte是一款自動化無圖形化瀏覽器測試工具,采用phantomJs。
使用環(huán)境:
使用:
創(chuàng)建一個新文件lotte_github.js(最好是在一個空目錄),復(fù)制下面的代碼:
this.open('https://github.com', function() {
this.describe('Sign Up button', function() {
this.assert.ok(this.$('.signup-button').length, 'expects button to be in the DOM');
this.success();
});
});
運行,可查看以下輸出:
/tmp/lotte_github.js @ https://github.com ? Sign Up button
評論
圖片
表情
