Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to test Reports using eCATT

Former Member
0 Likes
2,282

Hi All,

Please tell me how to test Reports(all kinds - alv etc) using eCATT.

Thanks in advance.

Regards

Kalyani

1 ACCEPTED SOLUTION
Read only

Vny12
Product and Topic Expert
Product and Topic Expert
0 Likes
2,105

Hi ,

I hope you are talking about executable reports .

Pleae record trasansaction SE38 and pass your report name as parameter and continue as you do manually.

In case you want to run every time using already stored variants, then

you should make sure variants exists,

Even in this case please start recording Se38 and proceed furhter as you manually .

regards

vinay

Hi ,

I hope you are talking about executable reports .

Pleae record trasansaction SE38 and pass your report name as parameter and continue as you do manually.

In case you want to run every time using already stored variants, then

you should make sure variants exists,

Even in this case please start recording Se38 and proceed furhter as you manually .

regards

vinay

13 REPLIES 13
Read only

Vny12
Product and Topic Expert
Product and Topic Expert
0 Likes
2,106

Hi ,

I hope you are talking about executable reports .

Pleae record trasansaction SE38 and pass your report name as parameter and continue as you do manually.

In case you want to run every time using already stored variants, then

you should make sure variants exists,

Even in this case please start recording Se38 and proceed furhter as you manually .

regards

vinay

Read only

Former Member
0 Likes
2,105

Hi Vinay,

Thanks for the reply. I want to see the result of the report in the log or is there any option to view the report output from the log. How can I achieve this.

Thanks and Regards

Kalyani

Read only

Former Member
0 Likes
2,105

Hello,

Reports can recorded using SE38 transaction to see the output either you can use the GETGUI command or determine the tables which are affected after the execution of your report if any and then perform the checks in these table.

Thanks & Best regards,

Ajay

Read only

0 Likes
2,105

Hi Ajay,

Thanks for your inputs. While executing the test script, i can only see the output screen of the report for a very short time. Is there any way to see the output of the report after execution of the test script or from the log?

If the report displays the data from tables without updating or changing any of them, how can get the number of records that a report displays for different selection criteria?

Also, in the selection screen, how can i capture the select option fields as import parameters, because, the contents of the field may vary form 1 to n number.

Please help me in this regard.

Thanks in advance.

Regards

Kalyani

Read only

0 Likes
2,105

Hello Kalyani,

Your report that you run should make some changes in the database if its not a read report, so when you enter the details in the report you enter some selection creteria in the report and you run the report , similarly after running the report , you can check in the corresponding table to ensure that the changes have been made.

Other way is to when you run the script click on the table output table after running the script and retrieve the value using GETGUI and check the value retrieved matches with your value.

Thanks & Best regards,

Ajay

Read only

0 Likes
2,105

Hi Ajay,

We are planning to use eCATT for complete testing in the our project. For this, we need to test reports that are developed. Most of the reports will de displaying the data for analysis (vendor performance etc) without making any changes in the database tables. To achieve the same, we need to see the report output after the script ecxecution, need to know how many records are selected for each section criteria. Is there any means to achieve this.

Also, please let me know how to define import parameters for a select options field in the selection screen.

Thanks in advance.

Regards

Kalyani.

Read only

0 Likes
2,105

Hello,

Is your report a function module if so then you can use command FUN in ecatt , regarding declaring the import parameters , declare the parameter in the parameter list of ecatt as follows.

Check in the report wht kind of field is it , move to the field press F1 , move to technical information in menu, note down the data element, in the parameter list , declare the field as say I_FIELD NAME (field name of the field which you want to declare , this info can be found the in the F1 again of the field) then in the parameter refeence pass the data element and press enter key , data type is picked automatically from the field.

Thanks & Best regards,

Ajay

Read only

0 Likes
2,105

Hi Ajay,

Thanks for your inputs.

My query is regarding the fields which are defined as "select options" in the selection screen. The input to such fields will be more than one value and also the number will vary for example somtimes we give a range or a set of values.So how to replicate the same in eCATT test script.

Regards

Kalyani

Read only

0 Likes
2,105

Hello ,

From the reusability point of view, script has to be recorded only for one entry and if you need for selection of multiple entries then the script has to be called multiple times, each time passing different values so that the required entry is selected everytime you execute the script.

Thanks and Best regards,

Ajay

Read only

Vny12
Product and Topic Expert
Product and Topic Expert
0 Likes
2,105

Hi kalyani,

I am pretty clear with what you want.

The output on screen after report execution usually prints some values on screen, which are really CANNOT be captured by GETGUI ,

there are several ways to automate this, in case some changes can be dont to report.

1.Make changes in your report in such way that selction options are replaced by parameters of ecatt (Here you have to pass values from ecatt) and you have to call your code within ABAP ...ENDABAP.

2.Make changes to report so that it returns you the success or failure in form of a status message in the status bar , this can be captured in eCATT within MESSAGE..ENDMESSAGE .By doing this, after each execution of report with different inputs,Status message will tell me the results of execution.

3.In case report is making some database commits then please execute the report and check for database changes after report execution for results to ensure success or failure.

i hope this helped you

regards

vinay

Read only

0 Likes
2,105

Hi Vinay,

Thanks for your inputs. The answer was helpful.

But is there any onther way to achieve this instead of making changes in the report, because the objective is only testing the report using eCATT. As the reports are developed as per the client specifications, we cannot make changes in them.

Thanks once again.

Regards

Kalyani

Read only

Vny12
Product and Topic Expert
Product and Topic Expert
0 Likes
2,105

Hi kalyani,

i have given all the possibilities of checking the report execution,

i am sure all of them belong to one or the other category like

status message, screen check...etc,

please try recording all the reports and embed withing message..endmessage

block for checking the success and failure

best regards

vinay

Read only

0 Likes
2,105

Kalyani,

I just found a topic in the SAP from over a year ago. You wanted to run standard SAP reporting programs with eCATT, then capture the reports that the programs produce for later viewing. I am trying to do this, too. I can do the Record TCD step, which includes saving the report with the dropdown System > List > Save > Local File. I then choose Spreadsheet, name a .xls file, and click Extend. Works fine during TCD Record, but gives me error messages when I ecexute the eCATT.

Did you find a way to capture the report output?