sakai-oae-test-api 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,53 @@
1
+ # Sakai OAE Functional Testing API
2
+
3
+ ## Description:
4
+
5
+ This is the development project for the Sakai OAE Functional Testing API gem for Ruby.
6
+
7
+ This API provides a framework for interacting with web sites for Sakai-OAE, using
8
+ Ruby and Watir-webdriver--but without needing to know either in detail.
9
+
10
+ ## Requirements:
11
+
12
+ ### Ruby 1.9.2 or higher
13
+
14
+ ### Ruby Gems:
15
+ [Watir-Webdriver](http://www.watirwebdriver.com)
16
+ [Page-Object](https://github.com/cheezy/page-object)
17
+
18
+ If you're just going to use the API for testing, then simply install it as you would any other Ruby gem: `gem install sakai-oae-test-api`
19
+
20
+ This repo is here if you're going to take part in extending the capabilities of the gem.
21
+
22
+ ## A Basic Usage Example for OAE:
23
+
24
+ ````ruby
25
+ #!/usr/bin/env ruby
26
+ require 'sakai-oae-test-api'
27
+
28
+ # Create an instance of the SakaiOAE class, specifying your test browser
29
+ # and the URL of your test site's OAE welcome page.
30
+ sakai = SakaiOAE.new(:firefox, "https://nightly.academic.rsmart.com/")
31
+
32
+ # Log in to Sakai OAE with "username" and "password"...
33
+ dashboard = sakai.login("username", "password") # See the LoginPage class and the HeaderFooterBar module in the RDocs.
34
+
35
+ # Go to the course library page for "Econ 101"...
36
+ course_library = dashboard.open_course "Econ 101" # See the RDocs for info on the
37
+ # MyDashboard and Library classes.
38
+
39
+ # Store the contents of the course library in
40
+ # an array called "library_contents"...
41
+ library_contents = course_library.documents
42
+ ````
43
+
44
+ ## Contribute
45
+
46
+ * Fork the project.
47
+ * Test drive your feature addition or bug fix. Adding specs is important and I will not accept a pull request that does not have tests.
48
+ * Make sure you describe your new feature with a cucumber scenario.
49
+ * Make sure you provide RDoc comments for any new public method you add. Remember, others will be using this gem.
50
+ * Commit, do not mess with Rakefile, version, or ChangeLog.
51
+ (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
52
+ * Send me a pull request. Bonus points for topic branches.
53
+
@@ -20,7 +20,7 @@ require 'sakai-oae-test-api/page_classes'
20
20
  # create the @browser variable used throughout the page classes.
21
21
  class SakaiOAE
22
22
 
23
- attr_reader :browser, :url
23
+ attr_reader :browser
24
24
 
25
25
  def initialize(web_browser, url)
26
26
 
@@ -1,11 +1,11 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'sakai-oae-test-api'
3
- s.version = '0.0.1'
3
+ s.version = '0.0.2'
4
4
  s.summary = %q{Sakai-OAE functional testing API for rSmart Academic}
5
5
  s.description = %q{The Sakai-OAE gem provides an API for interacting with the web pages and page elements in rSmart's deployment of the Sakai Open Academic Environment.}
6
6
  s.files = Dir.glob("**/**/**")
7
7
  s.test_files = Dir.glob("test/*test_rb")
8
- s.authors = %w{"Abraham Heward"}
8
+ s.authors = ["Abraham Heward"]
9
9
  s.email = %w{"aheward@rsmart.com"}
10
10
  s.homepage = 'https://github.com/aheward/Kuali-Sakai-Functional-Test-Automation-Framework/tree/Sakai-CLE/Sakai/OAE/API'
11
11
  s.add_dependency 'page-object', '>= 0.6.6'
metadata CHANGED
@@ -1,12 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sakai-oae-test-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
- - ! '"Abraham'
9
- - Heward"
8
+ - Abraham Heward
10
9
  autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
@@ -93,6 +92,7 @@ files:
93
92
  - lib/sakai-oae-test-api/toolbars_and_menus.rb
94
93
  - lib/sakai-oae-test-api/widgets.rb
95
94
  - lib/sakai-oae-test-api.rb
95
+ - README.md
96
96
  - sakai-oae-test-api.gemspec
97
97
  homepage: https://github.com/aheward/Kuali-Sakai-Functional-Test-Automation-Framework/tree/Sakai-CLE/Sakai/OAE/API
98
98
  licenses: []