Merge pull request #11167 from edx/christina/ora-data-download

WIP: Asynchronous download button for ORA2 data
This commit is contained in:
Eric Fischer
2016-03-10 11:09:36 -05:00
17 changed files with 351 additions and 65 deletions

View File

@@ -912,6 +912,13 @@ class DataDownloadPage(PageObject):
"""
return self.q(css="#report-downloads-table .file-download-link>a")
@property
def generate_ora2_response_report_button(self):
"""
Returns the ORA2 response download button for the current page.
"""
return self.q(css='input[name=export-ora2-data]')
def wait_for_available_report(self):
"""
Waits for a downloadable report to be available.

View File

@@ -636,6 +636,20 @@ class DataDownloadsTest(BaseInstructorDashboardTest):
self.verify_report_requested_event(report_name)
self.verify_report_download(report_name)
def test_ora2_response_report_download(self):
"""
Scenario: Verify that an instructor can download an ORA2 grade report
Given that I am an instructor
And I visit the instructor dashboard's "Data Downloads" tab
And I click on the "Download ORA2 Responses" button
Then a report should be generated
"""
report_name = u"ORA_data"
self.data_download_section.generate_ora2_response_report_button.click()
self.data_download_section.wait_for_available_report()
self.verify_report_download(report_name)
@attr('shard_7')
class CertificatesTest(BaseInstructorDashboardTest):