SharePoint 2013 RESTAPI

Creating a report that will extract data from two lists and list B.

In list A, I have a column test ID and a test name.

In list B, I have a column named test name.

I have created a text box that takes the test ID and extracts the items from the list A.

I want all the test names associated with the test ID.

j & # 39; uses getdatafrom (endPointUrl) extract the value from the name of the test.

As I need the name of the test to extract data from list B.

But I can not get all the test names associated with the test ID, only the last test name arrives.

j & # 39; uses données.d.résultats[i].test name to extract the data.