strongqa / howitzer Goto Github PK
View Code? Open in Web Editor NEWA Ruby-based framework for acceptance testing
Home Page: https://howitzer-framework.io
License: MIT License
A Ruby-based framework for acceptance testing
Home Page: https://howitzer-framework.io
License: MIT License
Remember, we should not generate real data here in execute_generator(options) method. Use Rspec Mock instead for RubiGen::Scripts::Generate.new.run method execution
May be Selenium is stable now, we need check it. Also, we need redesign locator_store
We have to create GETTING_STARTED.md file like https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md
It will allows end users to start quickly with Howitzer.
We have to create GETTING_STARTED.md file like https://github.com/thoughtbot/factory_girl/blob/master/GETTING_STARTED.md
It will allows end users to start quickly with Howitzer.
Now, if page is unexpected we have RuntimeError. it is nice to have something like IncorrectPageError instead.
Example:
RuntimeError: Current url: http://rdv4.reportdrop.net/admin/accounts, expected: (?-mix:a/\w+)
./pages/accounts_page.rb:30:in `launch_account'
It is required to implement flexible settings for next ones:
log_dir
html_log
required_clean_logs
We need to have some rails app, which will be not changed. And use howitzer for testing
This issues assumes test coverage only *_generator.rb files, and correct copying appropriate files(compare template files with copied ones by bits). Please do not cover ruby code of template files by tests!
To save memory, and speedup tests, do all pages and emails as singleton classes
For now, there are tests for file, but tests for STDOUT and STDERR are still required
cucumber 1.3.6 ⇢ 1.3.7
multi_json 1.7.9 ⇢ 1.8.0
poltergeist 1.3.0 ⇢ 1.4.0 ⇢ 1.4.1
rawler 0.1.7 ⇢ 0.1.8
Makes sense to generate warning error to console if some setting was deprecated and does not make sense anymore
There is some interesting article http://www.elabs.se/blog/53-why-wait_until-was-removed-from-capybara
For better design it is required
Use auto documentation from rdoc_documentation branch and up to date it
It is required to disable gems on rubygems
Use RSpec Mock
See lib/vendor
Add validator that will be something like that:
validates 'error', type: 'PHP'
Cover new feature by tests
Rspec integration and supporting Firebug + Firepath were added, please update documentation
For now we use following:
class HomePage < WebPage
URL_PATTERN = /#{Regexp.escape(settings.app_host)}\/?/
end
Where URL_PATTERN is used to make sure it's right opened page.
class WebPage
def self.given
new
end
def wait_for_url(expected_url, timeout=settings.timeout_small)
end_time = ::Time.now + timeout
until ::Time.now > end_time
operator = expected_url.is_a?(Regexp) ? :=~ : :==
return true if current_url.send(operator, expected_url).tap{|res| sleep 1 unless res}
end
log.error IncorrectPageError, "Current url: #{current_url}, expected: #{expected_url}"
end
private
def initialize
wait_for_url(self.class::URL_PATTERN)
end
end
Sometimes there are some kind of web sites, which use POST instead of GET. As result, all pages have "/" url. We have to implement general interface to validate page by different criteria. For instance, by Url, Title, element presence.
Please use RSpec Mock to test right ordering method execution, times execution and argument execution
User RSpec mock
Rspec, Cucumber, etc.
For instance, testingbot-integration-fix3
Use auto documentation from rdoc_documentation branch and up to date it
Sometimes there can be case when current url page matches to more than one URL_PATTERN. It is good idea to implement validation like it is in Cucumber.
Use auto documentation from rdoc_documentation branch and up to date it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.