Teber
Teber Library gem is to have all the common methods that will be used in functional UI automation.
Installation
Add this line to your application's Gemfile:
gem 'teber-library'
And then execute:
$ bundle
Or install it yourself as:
$ gem install teber-library
Usage
This gem is to replace the library methods in Teber-Ruby framework. This allows us to share the methods among different teams and completely ignore the repetitive work. For more details on Page object model for functional UI automation verify Teber Ruby Documentation page.
Adding new methods
Add all the new methods inside /lib/teber/ path with the module name as 'Teber'. If added a new file, include the newly added file to the /lib/teber/teber.rb so that those methods will be available when we use the gem.
Require and Include
To require this gem use,
require 'teber'
To Include the module teber
in your project use,
include Teber
after which all the classes in this gem are directly exposed
Sample Project
To get sample project in your working directory, try
teber example
Boom, you got your sample project in Page Object Model. For more details on the sample project visit Teber-Ruby
Development
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/nareshnavinash/Teber-Gem/. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
Authors
License
The gem is available as open source under the terms of the GPL-3.0 License.
Code of Conduct
Everyone interacting in the Teber project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.