Skip to Content

DO -LOOP in CBTA test script

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


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


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


Here i am comparing CELL_VALUE of each iteration with current date if it matches loop exits & Selects the 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



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

0 Answers

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.