cancel
Showing results for 
Search instead for 
Did you mean: 

DO -LOOP in CBTA test script

AjayHS
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hello Colleagues,

I have requirement for automating MD04 transaction

- where i need to traverse through a particular table to identify an element which has current date in column 6 at row 24 (for example)

- so i need to traverse starting from row 0 of column 6 and move down until i find current date value in the column 6. Once i find that particular row of column 6, then i need to retrieve the row number and pass it to next component in my CBTA component

- to achieve this i used DO/EXIT_DO/LOOP as shown below, however this seems to be not working

Using DO loop

Here i have initialized the COUNTERNAME to 1

Using SETEXECUTION CONTEXT

Here i have setting the row number ROW_ID to 0 as the row number starts from 0

Using GETCELL DATA

Here i am getting the value of each row element at column 6 into variable called CELL_VALUE

Using EXIT_DO

Here i am comparing CELL_VALUE of each iteration with current date if it matches loop exits & Selects the row

Using SELECT ROW

Here i select the row with row number retrieved above and select the row

However i am not able to proceed successfully. Please let me know how do i proceed , are the parameterization in the loop correct. Is the syntax correct.

Also if required entry is on the 4th page, does DO loop traverse itself till the last entry of the table or do we need to have specific components for pressing of scroll bars if the required entry is not found on each page

MD04 transaction which is planned to be automated

Thanks,

Aj

Accepted Solutions (0)

Answers (0)