A simple web automation test framework using selenium-webdriver,watir-webdriver,page-object and rspec.
The philosophy of lazyman is 'do less, gain more'.
Now lazyman only tested in windows, other platformes are going to be tested soon.
Install lazyman from rubygems
gem install lazyman
Or clone from github
If you have any issue when install lazyman, install the gems below:
gem install thor
In windows, open command console and type just like below:
lazyman new your_project_name
Lazyman contains some examples that explain how to use lazyman writing your own test cases.
By default, lazyman runs examples using chrome browser, so make sure you installed google chrome and according chrome driver
Using following command to make everything running.
cd your_project_name
rspec -f doc
Lazyman project has a clean and simple structure.
config: where your config file placed;
app->pages: puts all your pages files here;
app->pages->components: sometimes,there are some html element that could be reused more than once, define a component, place the file here and you can include your components in your pages.
app->cases: holds your testcase files;
app->cases->shared: Image that, you are testing a system which need to login before any actions, so you want to define a login function which can be called from your cases. Define reused cases here.
app->reports: the fold holds your test reports.
app->matchers: defind your owner rspec matchers here.
网址:https://github.com/easonhan007/lazyman