/AWS1/IF_M2T=>LISTTESTRUNS()¶
About ListTestRuns¶
Lists test runs.
Method Signature¶
METHODS /AWS1/IF_M2T~LISTTESTRUNS
IMPORTING
!IV_TESTSUITEID TYPE /AWS1/M2TIDENTIFIER OPTIONAL
!IT_TESTRUNIDS TYPE /AWS1/CL_M2TTESTRUNIDLIST_W=>TT_TESTRUNIDLIST OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/M2TNEXTTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/M2TMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_m2tlisttestrunsrsp
RAISING
/AWS1/CX_M2TACCESSDENIEDEX
/AWS1/CX_M2TINTERNALSERVEREX
/AWS1/CX_M2TRESOURCENOTFOUNDEX
/AWS1/CX_M2TTHROTTLINGEX
/AWS1/CX_M2TVALIDATIONEX
/AWS1/CX_M2TCLIENTEXC
/AWS1/CX_M2TSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_testsuiteid TYPE /AWS1/M2TIDENTIFIER /AWS1/M2TIDENTIFIER¶
The test suite ID of the test runs.
it_testrunids TYPE /AWS1/CL_M2TTESTRUNIDLIST_W=>TT_TESTRUNIDLIST TT_TESTRUNIDLIST¶
The test run IDs of the test runs.
iv_nexttoken TYPE /AWS1/M2TNEXTTOKEN /AWS1/M2TNEXTTOKEN¶
The token from the previous request to retrieve the next page of test run results.
iv_maxresults TYPE /AWS1/M2TMAXRESULTS /AWS1/M2TMAXRESULTS¶
The maximum number of test runs to return in one page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_m2tlisttestrunsrsp /AWS1/CL_M2TLISTTESTRUNSRSP¶
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->listtestruns(
it_testrunids = VALUE /aws1/cl_m2ttestrunidlist_w=>tt_testrunidlist(
( new /aws1/cl_m2ttestrunidlist_w( |string| ) )
)
iv_maxresults = 123
iv_nexttoken = |string|
iv_testsuiteid = |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_testruns( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_identifier = lo_row_1->get_testrunid( ).
lv_arn = lo_row_1->get_testrunarn( ).
lv_identifier = lo_row_1->get_testsuiteid( ).
lv_version = lo_row_1->get_testsuiteversion( ).
lv_identifier = lo_row_1->get_testconfigurationid( ).
lv_version = lo_row_1->get_testconfigurationversion( ).
lv_testrunstatus = lo_row_1->get_status( ).
lv_string = lo_row_1->get_statusreason( ).
lv_timestamp = lo_row_1->get_runstarttime( ).
lv_timestamp = lo_row_1->get_runendtime( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.