sakai-oae-test-api 0.0.3 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +34 -0
- data/README.md +48 -40
- data/lib/sakai-oae-test-api.rb +7 -3
- data/lib/sakai-oae-test-api/cle_announcements.rb +0 -0
- data/lib/sakai-oae-test-api/cle_assessments.rb +146 -0
- data/lib/sakai-oae-test-api/cle_assignments.rb +87 -0
- data/lib/sakai-oae-test-api/cle_basic_lti.rb +0 -0
- data/lib/sakai-oae-test-api/cle_blogs.rb +0 -0
- data/lib/sakai-oae-test-api/cle_calendar.rb +65 -0
- data/lib/sakai-oae-test-api/cle_calendar_summary.rb +0 -0
- data/lib/sakai-oae-test-api/cle_chat_room.rb +0 -0
- data/lib/sakai-oae-test-api/cle_drop_box.rb +0 -0
- data/lib/sakai-oae-test-api/cle_email_archive.rb +27 -0
- data/lib/sakai-oae-test-api/cle_forums.rb +62 -0
- data/lib/sakai-oae-test-api/cle_gradebook.rb +20 -0
- data/lib/sakai-oae-test-api/cle_gradebook2.rb +21 -0
- data/lib/sakai-oae-test-api/cle_messages.rb +133 -0
- data/lib/sakai-oae-test-api/cle_news.rb +19 -0
- data/lib/sakai-oae-test-api/cle_polls.rb +34 -0
- data/lib/sakai-oae-test-api/cle_post_em.rb +13 -0
- data/lib/sakai-oae-test-api/cle_profile.rb +27 -0
- data/lib/sakai-oae-test-api/cle_profile2.rb +57 -0
- data/lib/sakai-oae-test-api/cle_resources_roster.rb +0 -0
- data/lib/sakai-oae-test-api/cle_rwiki.rb +0 -0
- data/lib/sakai-oae-test-api/cle_sections.rb +57 -0
- data/lib/sakai-oae-test-api/cle_single_user.rb +13 -0
- data/lib/sakai-oae-test-api/cle_site_statistics.rb +13 -0
- data/lib/sakai-oae-test-api/cle_syllabus.rb +55 -0
- data/lib/sakai-oae-test-api/global_methods.rb +1 -1
- data/lib/sakai-oae-test-api/page_classes.rb +0 -62
- data/lib/sakai-oae-test-api/pop_up_dialogs.rb +2 -1
- data/sakai-oae-test-api.gemspec +3 -3
- metadata +32 -7
- data/lib/sakai-oae-test-api/cle_frame_classes.rb +0 -2160
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module EmailArchiveFrame
|
2
|
+
|
3
|
+
include PageObject
|
4
|
+
include GlobalMethods
|
5
|
+
include HeaderFooterBar
|
6
|
+
include LeftMenuBar
|
7
|
+
include HeaderBar
|
8
|
+
include DocButtons
|
9
|
+
|
10
|
+
# The frame object that contains all of the CLE Tests and Quizzes objects
|
11
|
+
def frm
|
12
|
+
self.frame(:src=>/TBD/)
|
13
|
+
end
|
14
|
+
|
15
|
+
end
|
16
|
+
|
17
|
+
class EmailArchive
|
18
|
+
include PageObject
|
19
|
+
include EmailArchiveFrame
|
20
|
+
CLEElements.modularize(EmailArchiveMethods, :index=>2)
|
21
|
+
end
|
22
|
+
|
23
|
+
class EmailArchiveOptions
|
24
|
+
include PageObject
|
25
|
+
include EmailArchiveFrame
|
26
|
+
include EmailArchiveOptionsMethods
|
27
|
+
end
|
@@ -0,0 +1,62 @@
|
|
1
|
+
# Methods related to the Forum page in Courses/Groups
|
2
|
+
module ForumFrame
|
3
|
+
include GlobalMethods
|
4
|
+
include LeftMenuBar
|
5
|
+
include HeaderBar
|
6
|
+
include HeaderFooterBar
|
7
|
+
include DocButtons
|
8
|
+
|
9
|
+
# The frame that contains the CLE Forums objects
|
10
|
+
def frm
|
11
|
+
self.frame(:src=>/sakai2forums.launch.html/)
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
class Forums
|
17
|
+
include PageObject
|
18
|
+
include ForumFrame
|
19
|
+
include ForumsMethods
|
20
|
+
end
|
21
|
+
|
22
|
+
class TopicPage
|
23
|
+
include PageObject
|
24
|
+
include ForumFrame
|
25
|
+
include TopicPageMethods
|
26
|
+
end
|
27
|
+
|
28
|
+
class ViewForumThread
|
29
|
+
include PageObject
|
30
|
+
include ForumFrame
|
31
|
+
include ViewForumThreadMethods
|
32
|
+
end
|
33
|
+
|
34
|
+
class ComposeForumMessage
|
35
|
+
include PageObject
|
36
|
+
include ForumFrame
|
37
|
+
CLEElements.modularize(ComposeForumMessageMethods, :index=>2)
|
38
|
+
end
|
39
|
+
|
40
|
+
class ForumTemplateSettings
|
41
|
+
include PageObject
|
42
|
+
include ForumFrame
|
43
|
+
include ForumTemplateSettingsMethods
|
44
|
+
end
|
45
|
+
|
46
|
+
class OrganizeForums
|
47
|
+
include PageObject
|
48
|
+
include ForumFrame
|
49
|
+
include OrganizeForumsMethods
|
50
|
+
end
|
51
|
+
|
52
|
+
class EditForum
|
53
|
+
include PageObject
|
54
|
+
include ForumFrame
|
55
|
+
CLEElements.modularize(EditForumMethods, :index=>2)
|
56
|
+
end
|
57
|
+
|
58
|
+
class AddEditTopic
|
59
|
+
include PageObject
|
60
|
+
include ForumFrame
|
61
|
+
CLEElements.modularize(AddEditTopicMethods, :index=>2)
|
62
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module GradebookFrame
|
2
|
+
include GlobalMethods
|
3
|
+
include HeaderFooterBar
|
4
|
+
include LeftMenuBar
|
5
|
+
include HeaderBar
|
6
|
+
include DocButtons
|
7
|
+
|
8
|
+
# The frame object that contains all of the CLE Tests and Quizzes objects
|
9
|
+
def frm
|
10
|
+
self.frame(:src=>/TBD/)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
# The topmost page in a Site's Gradebook
|
16
|
+
class Gradebook
|
17
|
+
include PageObject
|
18
|
+
include GradebookFrame
|
19
|
+
include GradebookMethods
|
20
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# TODO - describe
|
2
|
+
module Gradebook2Frame
|
3
|
+
include GlobalMethods
|
4
|
+
include HeaderFooterBar
|
5
|
+
include LeftMenuBar
|
6
|
+
include HeaderBar
|
7
|
+
include DocButtons
|
8
|
+
|
9
|
+
# TODO - Describe method
|
10
|
+
def gradebook_frame
|
11
|
+
self.frame(:src=>/sakai2gradebook.launch.html/)
|
12
|
+
end
|
13
|
+
|
14
|
+
end
|
15
|
+
|
16
|
+
#
|
17
|
+
class Gradebook2
|
18
|
+
include PageObject
|
19
|
+
include Gradebook2Frame
|
20
|
+
CLEElements.modularize(Gradebook2Methods, :index=>2)
|
21
|
+
end
|
@@ -0,0 +1,133 @@
|
|
1
|
+
module MessagesFrame
|
2
|
+
include GlobalMethods
|
3
|
+
include HeaderFooterBar
|
4
|
+
include LeftMenuBar
|
5
|
+
include HeaderBar
|
6
|
+
include DocButtons
|
7
|
+
|
8
|
+
# The frame object that contains all of the CLE Tests and Quizzes objects
|
9
|
+
def frm
|
10
|
+
self.frame(:src=>/TBD/)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
class Messages
|
16
|
+
include PageObject
|
17
|
+
include MessagesFrame
|
18
|
+
include MessagesMethods
|
19
|
+
end
|
20
|
+
|
21
|
+
class MessagesSentList
|
22
|
+
include PageObject
|
23
|
+
include MessagesFrame
|
24
|
+
CLEElements.modularize(MessagesSentListMethods, :class=>"portletMainIframe")
|
25
|
+
end
|
26
|
+
|
27
|
+
class MessagesReceivedList
|
28
|
+
include PageObject
|
29
|
+
include MessagesFrame
|
30
|
+
CLEElements.modularize(MessagesSentListMethods, :class=>"portletMainIframe")
|
31
|
+
end
|
32
|
+
|
33
|
+
# Page for the Contents of a Custom Folder for Messages
|
34
|
+
class FolderList #FIXME
|
35
|
+
include PageObject
|
36
|
+
include MessagesFrame
|
37
|
+
CLEElements.modularize(FolderListMethods, :class=>"portletMainIframe")
|
38
|
+
end
|
39
|
+
|
40
|
+
# Page that appears when you want to move a message
|
41
|
+
# from one folder to another.
|
42
|
+
class MoveMessageTo
|
43
|
+
include PageObject
|
44
|
+
include MessagesFrame
|
45
|
+
CLEElements.modularize(MoveMessageToMethods, :class=>"portletMainIframe")
|
46
|
+
end
|
47
|
+
|
48
|
+
# The page showing the list of deleted messages.
|
49
|
+
class MessagesDeletedList
|
50
|
+
include PageObject
|
51
|
+
include MessagesFrame
|
52
|
+
CLEElements.modularize(MessagesDeletedListMethods, :class=>"portletMainIframe")
|
53
|
+
end
|
54
|
+
|
55
|
+
# The page showing the list of Draft messages.
|
56
|
+
class MessagesDraftList
|
57
|
+
include PageObject
|
58
|
+
include MessagesFrame
|
59
|
+
CLEElements.modularize(MessagesDraftListMethods, :class=>"portletMainIframe")
|
60
|
+
end
|
61
|
+
|
62
|
+
# The Page where you are reading a Message.
|
63
|
+
class MessageView
|
64
|
+
include PageObject
|
65
|
+
include MessagesFrame
|
66
|
+
include MessageViewMethods
|
67
|
+
end
|
68
|
+
|
69
|
+
class ComposeMessage
|
70
|
+
include PageObject
|
71
|
+
include MessagesFrame
|
72
|
+
CLEElements.modularize(ComposeMessageMethods, :class=>"portletMainIframe")
|
73
|
+
end
|
74
|
+
|
75
|
+
class ReplyToMessage
|
76
|
+
include PageObject
|
77
|
+
include MessagesFrame
|
78
|
+
CLEElements.modularize(ReplyToMessageMethods, :class=>"portletMainIframe")
|
79
|
+
end
|
80
|
+
|
81
|
+
# The page for composing a message
|
82
|
+
class ForwardMessage
|
83
|
+
include PageObject
|
84
|
+
include MessagesFrame
|
85
|
+
CLEElements.modularize(ForwardMessageMethods, :class=>"portletMainIframe")
|
86
|
+
end
|
87
|
+
|
88
|
+
# The page that appears when you select to
|
89
|
+
# Delete a message that is already inside
|
90
|
+
# the Deleted folder.
|
91
|
+
class MessageDeleteConfirmation
|
92
|
+
include PageObject
|
93
|
+
include MessagesFrame
|
94
|
+
include MessageDeleteConfirmationMethods
|
95
|
+
end
|
96
|
+
|
97
|
+
# The page for creating a new folder for Messages
|
98
|
+
class MessagesNewFolder
|
99
|
+
include PageObject
|
100
|
+
include MessagesFrame
|
101
|
+
CLEElements.modularize(MessagesNewFolderMethods, :class=>"portletMainIframe")
|
102
|
+
end
|
103
|
+
|
104
|
+
# The page for editing a Message Folder's settings
|
105
|
+
class MessageFolderSettings
|
106
|
+
include PageObject
|
107
|
+
include MessagesFrame
|
108
|
+
include MessageFolderSettingsMethods
|
109
|
+
end
|
110
|
+
|
111
|
+
# Page that confirms you want to delete the custom messages folder.
|
112
|
+
class FolderDeleteConfirm
|
113
|
+
include PageObject
|
114
|
+
include MessagesFrame
|
115
|
+
include FolderDeleteConfirmMethods
|
116
|
+
end
|
117
|
+
|
118
|
+
# The attachment page for Messages
|
119
|
+
class MessagesAttachment < AddFiles
|
120
|
+
|
121
|
+
include MessagesFrame
|
122
|
+
|
123
|
+
def initialize(browser)
|
124
|
+
@browser = browser
|
125
|
+
|
126
|
+
@@classes = {
|
127
|
+
:this => "MessagesAttachment",
|
128
|
+
:parent => "ComposeMessage",
|
129
|
+
:second => "ReplyToMessage"
|
130
|
+
}
|
131
|
+
end
|
132
|
+
|
133
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module NewsFrame
|
2
|
+
include GlobalMethods
|
3
|
+
include HeaderFooterBar
|
4
|
+
include LeftMenuBar
|
5
|
+
include HeaderBar
|
6
|
+
include DocButtons
|
7
|
+
|
8
|
+
# The frame object that contains all of the CLE Tests and Quizzes objects
|
9
|
+
def frm
|
10
|
+
self.frame(:src=>/TBD/)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
class News
|
16
|
+
include PageObject
|
17
|
+
include NewsFrame
|
18
|
+
CLEElements.modularize(NewsMethods, :index=>2)
|
19
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module PollsFrame
|
2
|
+
include GlobalMethods
|
3
|
+
include HeaderFooterBar
|
4
|
+
include LeftMenuBar
|
5
|
+
include HeaderBar
|
6
|
+
include DocButtons
|
7
|
+
|
8
|
+
# The frame object that contains all of the CLE Tests and Quizzes objects
|
9
|
+
def frm
|
10
|
+
self.frame(:src=>/TBD/)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
#
|
16
|
+
class Polls
|
17
|
+
include PageObject
|
18
|
+
include PollsFrame
|
19
|
+
CLEElements.modularize(PollsMethods, :class=>"portletMainIframe")
|
20
|
+
end
|
21
|
+
|
22
|
+
#
|
23
|
+
class AddEditPoll
|
24
|
+
include PageObject
|
25
|
+
include PollsFrame
|
26
|
+
CLEElements.modularize(AddEditPollMethods, :class=>"portletMainIframe")
|
27
|
+
end
|
28
|
+
|
29
|
+
#
|
30
|
+
class AddAnOption
|
31
|
+
include PageObject
|
32
|
+
include PollsFrame
|
33
|
+
include AddAnOptionMethods
|
34
|
+
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
module PostEmFrame
|
2
|
+
include GlobalMethods
|
3
|
+
include HeaderFooterBar
|
4
|
+
include LeftMenuBar
|
5
|
+
include HeaderBar
|
6
|
+
include DocButtons
|
7
|
+
|
8
|
+
# The frame object that contains all of the CLE Tests and Quizzes objects
|
9
|
+
def frm
|
10
|
+
self.frame(:src=>/TBD/)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module ProfileFrame
|
2
|
+
include GlobalMethods
|
3
|
+
include HeaderFooterBar
|
4
|
+
include LeftMenuBar
|
5
|
+
include HeaderBar
|
6
|
+
include DocButtons
|
7
|
+
|
8
|
+
# The frame object that contains all of the CLE Tests and Quizzes objects
|
9
|
+
def frm
|
10
|
+
self.frame(:src=>/TBD/)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
#
|
16
|
+
class Profile
|
17
|
+
include PageObject
|
18
|
+
include ProfileFrame
|
19
|
+
include ProfileMethods
|
20
|
+
end
|
21
|
+
|
22
|
+
#
|
23
|
+
class EditProfile
|
24
|
+
include PageObject
|
25
|
+
include ProfileFrame
|
26
|
+
CLEElements.modularize(EditProfileMethods, :index=>2)
|
27
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module Profile2Frame
|
2
|
+
include GlobalMethods
|
3
|
+
include HeaderFooterBar
|
4
|
+
include LeftMenuBar
|
5
|
+
include HeaderBar
|
6
|
+
include DocButtons
|
7
|
+
|
8
|
+
# The frame object that contains all of the CLE Tests and Quizzes objects
|
9
|
+
def frm
|
10
|
+
self.frame(:src=>/TBD/)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
#
|
16
|
+
class Profile2
|
17
|
+
include PageObject
|
18
|
+
include Profile2Frame
|
19
|
+
include Profile2Nav
|
20
|
+
CLEElements.modularize(Profile2Methods, :index=>2)
|
21
|
+
end
|
22
|
+
|
23
|
+
#
|
24
|
+
class Profile2Preferences
|
25
|
+
include PageObject
|
26
|
+
include Profile2Frame
|
27
|
+
include Profile2Nav
|
28
|
+
CLEElements.modularize(Profile2PreferencesMethods, :index=>2)
|
29
|
+
end
|
30
|
+
|
31
|
+
class Profile2Privacy
|
32
|
+
include PageObject
|
33
|
+
include Profile2Frame
|
34
|
+
include Profile2Nav
|
35
|
+
CLEElements.modularize(Profile2PrivacyMethods, :index=>2)
|
36
|
+
end
|
37
|
+
|
38
|
+
class Profile2Search
|
39
|
+
include PageObject
|
40
|
+
include Profile2Frame
|
41
|
+
include Profile2Nav
|
42
|
+
CLEElements.modularize(Profile2SearchMethods, :index=>2)
|
43
|
+
end
|
44
|
+
|
45
|
+
class Profile2Connections
|
46
|
+
include PageObject
|
47
|
+
include Profile2Frame
|
48
|
+
include Profile2Nav
|
49
|
+
CLEElements.modularize(Profile2ConnectionsMethods, :index=>2)
|
50
|
+
end
|
51
|
+
|
52
|
+
class Profile2View
|
53
|
+
include PageObject
|
54
|
+
include Profile2Frame
|
55
|
+
include Profile2Nav
|
56
|
+
include Profile2ViewMethods
|
57
|
+
end
|
File without changes
|
File without changes
|
@@ -0,0 +1,57 @@
|
|
1
|
+
module SectionsFrame
|
2
|
+
include GlobalMethods
|
3
|
+
include HeaderFooterBar
|
4
|
+
include LeftMenuBar
|
5
|
+
include HeaderBar
|
6
|
+
include DocButtons
|
7
|
+
|
8
|
+
# The frame object that contains all of the CLE Tests and Quizzes objects
|
9
|
+
def frm
|
10
|
+
self.frame(:src=>/TBD/)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
# Topmost page for Sections in Site Management
|
16
|
+
class Sections
|
17
|
+
include PageObject
|
18
|
+
include SectionsFrame
|
19
|
+
include SectionsMenu
|
20
|
+
include SectionsMethods
|
21
|
+
end
|
22
|
+
|
23
|
+
# Methods in this class currently do not support
|
24
|
+
# adding multiple instances of sections simultaneously.
|
25
|
+
# That will be added at some future time.
|
26
|
+
# The same goes for adding days with different meeting times. This will hopefully
|
27
|
+
# be supported in the future.
|
28
|
+
class AddEditSections
|
29
|
+
include PageObject
|
30
|
+
include SectionsFrame
|
31
|
+
include SectionsMenu
|
32
|
+
CLEElements.modularize(AddEditSectionsMethods, :index=>2)
|
33
|
+
end
|
34
|
+
|
35
|
+
#
|
36
|
+
class AssignTeachingAssistants
|
37
|
+
include PageObject
|
38
|
+
include SectionsFrame
|
39
|
+
include SectionsMenu
|
40
|
+
CLEElements.modularize(AssignTeachingAssistantsMethods, :index=>2)
|
41
|
+
end
|
42
|
+
|
43
|
+
#
|
44
|
+
class AssignStudents
|
45
|
+
include PageObject
|
46
|
+
include SectionsFrame
|
47
|
+
include SectionsMenu
|
48
|
+
CLEElements.modularize(AssignStudentsMethods, :index=>2)
|
49
|
+
end
|
50
|
+
|
51
|
+
# The Options page for Sections.
|
52
|
+
class SectionsOptions
|
53
|
+
include PageObject
|
54
|
+
include SectionsFrame
|
55
|
+
include SectionsMenu
|
56
|
+
CLEElements.modularize(AssignStudentsMethods, :index=>2)
|
57
|
+
end
|