Class: OLE_QA::Framework::OLELS::Batch_Job_Report
- Inherits:
-
Page
- Object
- Common_Object
- Page
- OLE_QA::Framework::OLELS::Batch_Job_Report
- Defined in:
- lib/olels/pages/batch_job_report.rb
Overview
A Batch Process job report page in OLE.
Instance Attribute Summary
Attributes inherited from Page
Attributes inherited from Common_Object
Instance Method Summary collapse
-
#initialize(ole_session) ⇒ Batch_Job_Report
constructor
It is not possible link directly to a job report by job ID in OLE.
- #set_elements ⇒ Object
- #wait_for_elements ⇒ Object
Methods inherited from Page
#lookup, #lookup_url, #open, #set_functions, #set_line, #wait_for_element, #wait_for_page_to_load
Methods inherited from Common_Object
Methods included from Helpers
#browser, #load_yml, #set_element, #set_function
Constructor Details
#initialize(ole_session) ⇒ Batch_Job_Report
It is not possible link directly to a job report by job ID in OLE.
A form key is generated when the report is accessed, and the URL will not work without one.
20 21 22 23 24 |
# File 'lib/olels/pages/batch_job_report.rb', line 20 def initialize(ole_session) url = ole_session.url + 'portal.do?channelTitle=Batch Process Job Details&channelUrl=' url += ole_session.url + 'ole-kr-krad/oleBatchProcessJobController?viewId=OLEBatchProcessJobDetailsView&methodToCall=jobDocHandler&command=initiate&documentClass=org.kuali.ole.batch.bo.OLEBatchProcessJobDetailsBo' super(ole_session,url) end |
Instance Method Details
#set_elements ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/olels/pages/batch_job_report.rb', line 26 def set_elements super element(:title) {b.h2.span(:class => 'uif-headerText-span')} element(:job_id) {b.span(:id => 'jobIdField-popup_control')} element(:job_name) {b.span(:id => 'jobNameField-popup_control')} element(:batch_process_type) {b.span(:id => 'batchProcessType-popup_control')} element(:batch_profile_name) {b.span(:id => 'batchProfileNameField-popup_control')} element(:upload_file_name) {b.span(:id => 'uploadFileNameField-popup_control')} # Order Record Import jobs only element(:create_time) {b.span(:id => 'createTimeField-popup_control')} element(:batch_process_id) {b.span(:id => 'batchProcessIdField-popup_control')} element(:user_name) {b.span(:id => 'userNameField-popup_control')} element(:total_records) {b.span(:id => 'totalNoOfRecordsField-popup_control')} element(:records_processed) {b.span(:id => 'noOfRecordsProcessedField-popup_control')} element(:success_records) {b.span(:id => 'noOfSuccessRecordsField-popup_control')} # "N/A" on Order Record Import element(:failure_records) {b.span(:id => 'noOfFailureRecordsField-popup_control')} # "N/A" on Order Record Import element(:percent_completed) {b.span(:id => 'perCompletedField-popup_control')} element(:start_time) {b.span(:id => 'startTimeField-popup_control')} element(:end_time) {b.span(:id => 'endTimeField-popup_control')} element(:time_spent) {b.span(:id => 'timeSpentField-popup_control')} element(:status) {b.span(:id => 'statusField-popup_control')} element(:status_description) {b.span(:id => 'statusDescField-popup_control')} element(:view_export_file) {b.div(:id => 'exportPath-popup').a(:class => 'uif-link')} end |
#wait_for_elements ⇒ Object
50 51 52 53 |
# File 'lib/olels/pages/batch_job_report.rb', line 50 def wait_for_elements super @wait_on << :title << :job_id << :batch_process_id << :status end |