/AWS1/IF_DFM=>LISTTESTGRIDSESSIONS()¶
About ListTestGridSessions¶
Retrieves a list of sessions for a TestGridProject.
Method Signature¶
METHODS /AWS1/IF_DFM~LISTTESTGRIDSESSIONS
IMPORTING
!IV_PROJECTARN TYPE /AWS1/DFMDEVICEFARMARN OPTIONAL
!IV_STATUS TYPE /AWS1/DFMTESTGRIDSESSIONSTATUS OPTIONAL
!IV_CREATIONTIMEAFTER TYPE /AWS1/DFMDATETIME OPTIONAL
!IV_CREATIONTIMEBEFORE TYPE /AWS1/DFMDATETIME OPTIONAL
!IV_ENDTIMEAFTER TYPE /AWS1/DFMDATETIME OPTIONAL
!IV_ENDTIMEBEFORE TYPE /AWS1/DFMDATETIME OPTIONAL
!IV_MAXRESULT TYPE /AWS1/DFMMAXPAGESIZE OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/DFMPAGINATIONTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dfmlisttstgridsesssrs
RAISING
/AWS1/CX_DFMARGUMENTEXCEPTION
/AWS1/CX_DFMINTERNALSERVICEEX
/AWS1/CX_DFMNOTFOUNDEXCEPTION
/AWS1/CX_DFMCLIENTEXC
/AWS1/CX_DFMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_projectarn TYPE /AWS1/DFMDEVICEFARMARN /AWS1/DFMDEVICEFARMARN¶
ARN of a TestGridProject.
Optional arguments:¶
iv_status TYPE /AWS1/DFMTESTGRIDSESSIONSTATUS /AWS1/DFMTESTGRIDSESSIONSTATUS¶
Return only sessions in this state.
iv_creationtimeafter TYPE /AWS1/DFMDATETIME /AWS1/DFMDATETIME¶
Return only sessions created after this time.
iv_creationtimebefore TYPE /AWS1/DFMDATETIME /AWS1/DFMDATETIME¶
Return only sessions created before this time.
iv_endtimeafter TYPE /AWS1/DFMDATETIME /AWS1/DFMDATETIME¶
Return only sessions that ended after this time.
iv_endtimebefore TYPE /AWS1/DFMDATETIME /AWS1/DFMDATETIME¶
Return only sessions that ended before this time.
iv_maxresult TYPE /AWS1/DFMMAXPAGESIZE /AWS1/DFMMAXPAGESIZE¶
Return only this many results at a time.
iv_nexttoken TYPE /AWS1/DFMPAGINATIONTOKEN /AWS1/DFMPAGINATIONTOKEN¶
Pagination token.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dfmlisttstgridsesssrs /AWS1/CL_DFMLISTTSTGRIDSESSSRS¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->listtestgridsessions(
iv_creationtimeafter = '20150101000000.0000000'
iv_creationtimebefore = '20150101000000.0000000'
iv_endtimeafter = '20150101000000.0000000'
iv_endtimebefore = '20150101000000.0000000'
iv_maxresult = 123
iv_nexttoken = |string|
iv_projectarn = |string|
iv_status = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_testgridsessions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_devicefarmarn = lo_row_1->get_arn( ).
lv_testgridsessionstatus = lo_row_1->get_status( ).
lv_datetime = lo_row_1->get_created( ).
lv_datetime = lo_row_1->get_ended( ).
lv_double = lo_row_1->get_billingminutes( ).
lv_string = lo_row_1->get_seleniumproperties( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.