Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create behavior-driven tests using 'behave' framework #38

Open
cmungall opened this issue Apr 14, 2015 · 0 comments
Open

Create behavior-driven tests using 'behave' framework #38

cmungall opened this issue Apr 14, 2015 · 0 comments

Comments

@cmungall
Copy link

It would be v useful to have a set of tests for ontobee, that would check not only the UI functionality, but data integrity.

these are very easy to do using the behave framework. For each, a script search.behave would look like this:

@ui
 Scenario: "instrument" in the keyword search with a click goes to a details page
    Given I go to page "/"
     and I type "instrument" into the keyword search
     and I wait until "instrument (OBI_0000968)" appears in the autocomplete 
     and I click the autocomplete item "instrument (OBI_0000968)"
     then the title should be "device"

 @ui
 Scenario: "instrument" in the keyword search with submit goes to a search page
    Given I go to page "/"
     and I type "instrument" into the keyword search
     and I submit keyword search
     then the title should be "Search Results: instrument"
     and the document should contain "instrumentation planning"
     and the document should contain "instrument (OBI)"

For examples written by @kltm, see:
https://github.com/geneontology/amigo/tree/master/selenium/behave

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant