Parameters in eCATT
When I pushed 'pattern' button,it displayed several input parameters.It doesn't have 'TCD' command directly.there is another field 'group',what is the meaning?and after choose the 'UI control',Command field can be selected as TCD.If I just run a simple transaction that change the content of table.How to define them?Thanks.
Hi!
Maybe you have a look at <a href="http://www.sapdevelopment.co.uk/testing/ecatt.htm">this tutorial</a>.
'Group' groups all the possible commands into topics:
- commands for records 'UI'
- commands for DB access 'Table'
So you can find the commands faster (if you know a little about them).
Regards,
Christian
Similar Messages
-
How to store export parameters in eCATT?
Hi all,
I am quite new to eCATT. My VA01 recording receives different variants from an Excel-file and now I'm trying to chain VA01 with VA02.
My VA01 test script creates 5 sales orders. An export parameter is generated only from the fifth sales order number. VA02 gets this export parameter as import parameter and everything works fine. But is it possible to store <b>all</b> sales order numbers and use them as export parameters? I would like to use several sales order numbers as import parameters in VA02. Now only the fifth sales order number is exported to VA02 transaction via REF commands. Could these export parameters be downloaded e.g. to an Excel file so that VA02 could upload them from there and use them as its import parameters?
I would really appreciate the help!
Regards,
LindaHI Linda,
Create an export variable and in the parameter reference give the field reference of the field like this VBELN[], then this forms a structure parameter...
Then place all your recorded SAPGUI/TCD with in Message/EndMessage Block, and make a rule as an expected message, something like this...
MODE MSGID MSGNR MSGV1
'E' '/DBM/COMMON' 467 E_VBELN
MSGID & MSGNR might differ in your case use them accordingly, also check the previous log and make sure that the order number is MSGV1, if it is in MSGV2, place the variable E_VBELN in the MSGV2 field of the message Rule.
This should generally fetch you all the order numbers...
But in some situations it didnt work in my case, so here is the second solution...
MESSAGE ( MSG_1 ).
SAPGUI/TCD RECORDING
ENDMESSAGE ( E_MSG_1 ).
DO ( &TFILL ).
IF ( E_MSG_1[&LPC]-MSGID = '/DBM/COMMON' AND E_MSG_1[&LPC]-MSGNR = 467 ).
E_VBELN[V_COUNT]-TABLE_LINE = E_MSG_1[&LPC]-MSGV1.( V_COUNT Should also be declared, but as a local variable)
V_COUNT = V_COUNT + 1.
ENDIF.
ENDDO.
This was you will get all the order numbers in one variable, which you can access in any script while looping the varable based on its length..
Check and modify accordingly.
Hope this helps..
Best regards,
Harsha
PS: award points if this answer helps solve your issue. -
Hi All,
Is it possible to create a <b>TABLES</b> parameters in eCATT, if yes how?Hello Ratan
This can be done very easily. Simply type your local parameter like this:
LT_KNA1 => type KNA1[] " brackets !!!
Regards,
Uwe -
Using secatt for testing entire cycle
How can we use SECATT tool for testing the entire series of transactions to be used in logistics functions?
Example :
rfq
acceptance/rejections
purchase order
goods receipt
invoice verification
goods issue
inventory posting/stock transfer
all in a sequence?Hi Chintan Chande,
Create eCATT scripts for each transaction and export the needed values in each script and use them as input variables in the next scripts.
Like, Script P_Order for PO, take the PO number and create a GR WRT to PO number.
Like wise you could link all your scripts to form a Scenario.
After creating individual scripts for each transactions, then create a master script wherein you encapsulate/refer all of them in here..
Like REF ( RFQ , RFQ_1 ).
REF ( INVENTORY , INVENTORY_1 ).
Also, following is the link of a weblog on SDN which gives step by setp details about chaining. It also explains the terms used with necessary details -
/people/sapna.modi/blog/2006/04/18/ecatt-chaining-parameterization-creation-of-test-datatest-configuration-system-data-part-iv
Also, you may also use this thread for your reference.. Though this is not exactly what you are looking for, but it would help you in your case even.
How to store export parameters in eCATT?
Hope this helps..
Best regards,
Harsha
PS: Reward points if this answers your query. -
How to test reports notification for iStore
Hi,
In notification manager,i have seen below notification events.
Reports - iStore Historical Summary
Reports - iStore Top Orders
how I can test these report and the output of these reports.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 -
Hi,
I have created one textbox for order number. i want to create RFC for this field to get(display) the order number from the database table (like search help). How can i write the source code for that in the Function module. Please give me one example..
help me..Hi Chintan Chande,
Create eCATT scripts for each transaction and export the needed values in each script and use them as input variables in the next scripts.
Like, Script P_Order for PO, take the PO number and create a GR WRT to PO number.
Like wise you could link all your scripts to form a Scenario.
After creating individual scripts for each transactions, then create a master script wherein you encapsulate/refer all of them in here..
Like REF ( RFQ , RFQ_1 ).
REF ( INVENTORY , INVENTORY_1 ).
Also, following is the link of a weblog on SDN which gives step by setp details about chaining. It also explains the terms used with necessary details -
/people/sapna.modi/blog/2006/04/18/ecatt-chaining-parameterization-creation-of-test-datatest-configuration-system-data-part-iv
Also, you may also use this thread for your reference.. Though this is not exactly what you are looking for, but it would help you in your case even.
How to store export parameters in eCATT?
Hope this helps..
Best regards,
Harsha
PS: Reward points if this answers your query. -
How to call an eCATT programmatically with import parameters
Hi there,
I am using function module ECATT_EXECUTE to call test scripts from within ABAP test code, like below. Unfortunately, I am not able to pass my actual import parameter values. It seems that the interface does not provide a way to pass import parameters to the eCATT.
Although posted in November, this is still an issue for me. Does anybody know an answer?
call function 'ECATT_EXECUTE'
exporting
to_execute = lt_script
display_log = space
i_supress_output = 'X'
importing
executed = lt_executed
logid = ls_logid
trace_prot = lt_trace
exceptions
nothing_to_do = 1
too_many_scripts_called = 2
others = 3.
Does anybody reading this have a solution?
Thanks and regards,
Rüdiger
Edited by: Rüdiger Plantiko on Jan 17, 2008 3:05 PM
Edited by: Rüdiger Plantiko on Jan 17, 2008 3:05 PMHello Rüdiger,
direct passover would be fine - well, I've come to get used to finding workarounds in SAP though. Maybe, the function module will support the missing parameters in some forthcoming release.
Btw I switched over to tables ECTC_VAR / ECTC_DATA and pass obj_type = 'ECTC' to ECATT_EXECUTE, since test configurations can directly be executed.
You don't happen to know what has to be done, if the call of ECATT_EXECUTE results in a dump? After correctly executing the test configuration. Looks like eCatt tries to put the resulting log to nowhere. Perhaps I have to initialize some kind of a log receiver first or set some option in the start profile? I passed DISPLAY_LOG = SPACE, and SUPPRESS_OUTPUT = 'X'.
Dump was:
Laufzeitfehler OBJECTS_OBJREF_NOT_ASSIGNED
Datum und Zeit 05.03.2008 17:37:00
Zeile Quelltext
1 METHOD http_send_and_receive .
2
3 DATA: l_errortext TYPE string.
4 DATA: l_http_subrc TYPE sy-subrc.
5 *----------------------------------------------------------------
6
>>>>> im_http_client->request->set_data( data = im_request ).
8
Aktive Aufrufe/Ereignisse
Nr. Art Programm Include Zeile
Name
6 METHOD CL_HTTP_TESTZONE_RESULT=======CP CL_HTTP_TESTZONE_RESULT=======CM00Q 7
CL_HTTP_TESTZONE_RESULT=>HTTP_SEND_AND_RECEIVE
5 METHOD CL_HTTP_TESTZONE_RESULT=======CP CL_HTTP_TESTZONE_RESULT=======CM00O 16
CL_HTTP_TESTZONE_RESULT=>HTTP_REQUEST_NEWRESULTID
4 METHOD CL_HTTP_TESTZONE_RESULT=======CP CL_HTTP_TESTZONE_RESULT=======CM00T 34
CL_HTTP_TESTZONE_RESULT=>SEND_TO_RESULT_REPOSITORY
3 METHOD CL_APL_ECATT_LOG_TO_RESREP====CP CL_APL_ECATT_LOG_TO_RESREP====CM001 400
CL_APL_ECATT_LOG_TO_RESREP=>GET_LOG_DATA
2 FUNCTION SAPLECATT_EXECUTE LECATT_EXECUTEU01 888
ECATT_EXECUTE
1 EVENT ZDSD_SL_VIA_CATT ZDSD_SL_VIA_CATT 26
START-OF-SELECTION
Regards + have a nice weekend,
Matthias -
Executing ECATT programmatically with parameters
Hi
I want to use the ECATT_EXECUTE function module to run the ECATT test scripts. How to pass the parameters of the script to this FM (without creating a variant or uploading a file)? My program will feed the parameters.
Could anyone help me in this regard?
Thanks and Regards
ShahulHi Shashul,
could u explain the process in detail,
What u are doing and what u r expecting,
so that I may find some solution,
Regards,
Chandra shekhar.A -
How to load Test data from a Text file in ECATT
Hi,
I have created a test configuration with a test script, system data container, and test data container.
I have done the recording of a transaction and created the script. Parameterization is done for the script and have imported those parameters from script in to the data container.
I am trying to load a the data from a text file on the local work-station. The data is not being read.
Please explain this in detail (step by step) as I am very new to ECATT.
I am trying this on SAP ECC 6.0 IDES server.
Thanks in Advance
Vikas PatilPlease explain this in detail (step by step) as I am very new to ECATT.
Thanks in Advance
Vikas Patil -
Error in executing eCATT GUI Script
Hi
I am getting following error (in bold) while executing eCATT GUI Script. This happens only for GUI Scripts and not for TCD scripts. Please help me to solve this issue.
<b>0000000195 Test Scrpt ZGUI_SCRIPT4 Version 1 - SECATT [Without Interruption]
R01 800 SANDEEPK1 E 620 sapnw10 Windows NT MSSQL 26.05.2006 12:42:29
ZGUI_SCRIPT4 [0,109 sec] Version 1 ZGUI_SCRIPT4
Tgt System TEST_ECAT->ECATT_SAPNW10_800_E->T90CLNT090 (R01 800 ALEREMOTE E 620 sapnw10
Windows NT MSSQL)
Error in eCATT function SAPGUI
Destination ECATT_SAPNW10_800_E RFC error
service 'sapgw-1' unknown / CPI-C error CM_PRODUCT_SPECIFIC_ERROR.</b>
Thanks in Advance.
Regards,
Sandeep K.Hi Sandeep,
My self , Sreedhar D, working eCATT using SAPGUI recording.
i think ur problem is resolved. Can u help for the below issue.
Scenario:
And i working on testing server which does not have any trasaction, i have to record the transaction using RFC connection to different machine.
I did all the that process and able to connect remote machine.
i started doing the recoding in SAPGUI after creation of sys. Data container by specifying RFC connection.
I recorded the script, but when i try to execute the same this attached error r coming.
But i recorded the same using TCD(Recorded) using remote connection and able to sucessfully execute.
One more thing also, we used write the script for reading the test data from Excel and pass as parameters using TCD(Recording).
Below is the error
Target sys ECATT_SAPTD120_400_E_0002
Destination ECATT_SAPTD120_400_E_0002 RFC Error
Waiting for ur response. Thanks in Adavance.
Sreedhar d -
Error - Vavlue is not an eCATT parameter
Hello Colleagues,
I am using SAPGUI recordign mode and while compiling i am getting the below error can anyone help me to resolve the issue ?.
Test Script MIB_INS_CATEGORY_PERS_TAB,Version 1,
Reference V_VALUE for SAPGUI_1_29-PROCESSEDSCREEN[1]-USERCHANGEDSTATE-
GUIELEMENT[1]-STATE-SETPROPERTY[1]-VALUE Is Not Defined as an eCATT
Parameter
More details,
I am trying to give an input in one of the rows of the table in the scenario .
regards
harsha
Edited by: Julius Bussche on Feb 6, 2009 8:58 PM
Please use meaningfull subject titles>
Harsha S wrote:
> Hello Colleagues,
>
> I am using SAPGUI recordign mode and while compiling i am getting the below error can anyone help me to resolve the issue ?.
>
> Test Script MIB_INS_CATEGORY_PERS_TAB,Version 1,
> Reference V_VALUE for SAPGUI_1_29-PROCESSEDSCREEN[1]-USERCHANGEDSTATE-
> GUIELEMENT[1]-STATE-SETPROPERTY[1]-VALUE Is Not Defined as an eCATT
> Parameter
>
> More details,
>
> I am trying to give an input in one of the rows of the table in the scenario .
>
> regards
> harsha
Hi Harsha,
This error may be due to the fact that you have not declared the variable that is used in the Parameterization part.
Else,there may be a reason that while parameterizing you have put the parameter in the wrong place.
You have to put the variable in the correct place for parameterization.
Hope this info helps.
Thanks and Regards,
Senthil. -
Assigning a timestamp to an Import Parameter in eCATT
I am trying to assign a value to an Import parameter that will be unique every time the eCATT script runs. I have inserted a piece of Inline ABAP code that looks like this:
ABAP.
DATA: BEGIN of wa,
time_stamp TYPE P,
END OF wa.
GET TIME STAMP FIELD wa-time_stamp.
I_DATETIME = wa-time_stamp.
END ABAP.
This only assigns a time stamp to I_DATETIME is the parameter is type V. Unfortunately, the script produces an error unless I_DATETIME is type I, however the Inline ABAP produces a syntax error when I_DATETIME is type I.
For example, when I_DATETIME is type V I see in my
LOG I_DATETIME statement that the value 20050518200719 or something similar has been assigned to that parameter. However, in the SAPGUI command interface where I deleted the original number value and replaced it with parameter I_DATETIME it reads: Value = I_DATETIME = '
Why can't I use parameters of type I and V interchangeably in the script and Inline ABAP? Is there an easier way to go about getting a time stamp or unique value for an Import Parameter?
Message was edited by: Ben WeisbergBen,
there are two issues here:
<b>Parameter visibility in inline ABAP</b>
In inline ABAP, <b>only</b> local variables (visibilty V) can be used. The reason for this was to minimize the amount of data that has to be transferred to the target system of the script when the inline ABAP is generated.
<b>Avoiding inline ABAP where possible</b>
You said yourself that you suspect your approach is inefficient. I always tell people that inline ABAP can be fun, using the eCATT script language is better
You can generate yourself a timestamp in eCATT like this:
First, declare a parameter with type C. Since you are going to fill it in the script, there is no need for it to be an importing parameter - local variable (V) will do - let's call it V_TIMESTAMP.
Fill the field using <b>either</b>
V_TIMESTAMP = &DATE & &TIME
<b>or</b>
V_TIMESTAMP = sy-datum & sy-uzeit
<i>What's the difference?</i>
If you use the eCATT variables &DATE and &TIME, you will always get the date and time of the <b>current target system</b>. If you use the ABAP system fields sy-datum and sy-uzeit, you will always get the date and time of the <b>local eCATT system</b>. Obviously, if you are working locally in a system, these two sets of values will be the same. However, if you start working remotely - possibly against app servers in different time zones - you will have to decide which you want to use. -
Ecatt: how to test the creation of a purchase requisistion (ME51N)
Hello ecatt-experts,
I have some questions concerning the creation of a purchase requisition with ecatt:
- is it possible to use TCD recording instead of sapgui recording for ME51N ?
(as far as I've seen it's not possible with TCD as I didn't get back the field-values)
- Is it possible to record the creation of a PR with 1 item and to write a script which can be used for the creation of a PR with n items ?
For this I would need to cread GUIElement- Parameters dynamically.
Or is the only solution to this problem to register a sapgui with n items and to define n parameters ?
regards,
monikaHI Monika,
It is difficult to use TCD for creating a Purchase Requisition (I am not telling you that it is impossible, you can do it, but its really hard to manipulate screen elements and to pass values to them).
One thumb rule is to use SAPGUI for all Enjoy transactions(ME21N, ME51N, MIGO....)
Answer to your second question is YES. You can use the single recording for N number of items without creating multiple parameters.
You have to create a parameter with the parameter reference as the table/structure mentioned in the transaction grid(Press F1 on the TA screen and then go to technical help and copy the table/structure name and paste it in the parameter reference area of the eCATT parameter ending with [] like <b><I_MARA> <Description> <MARA[]></b> ).
Then create another local parameter of type numeric(may be V_COUNT )
In the eCATT, use a GETLENGTH (I_MARA, V_COUNT).
Then loop the grid values like
DO (V_COUNT).
SAPGUI RECORDING <b>ONLY</b> FOR THE ITEMS..
Here map the values with the values of the St. Parameter
like I_MARA[&LPC]-MATNR.
ENDDO.
This way, you can pass multiple values to the grid to the parameter I_MARA in the runtime and also use a single line recording for passing multiple values.
This thread might help you in a way.
Re: Secatt doubt
Hope the solution helps.
Best regards,
Harsha
PS: Reward points accordingly for all responding. -
In ecatt - how to check at database level using ABAP
Hi,
How to check at database level using ABAP in Ecatt tool.
say,for example I want to check a particular sales order is invoiced or not ,at the database level and if it is invoiced I have stop proceeding to invoicing of that sales order number.
Could anybody suggest on this with an example?
thanks.Hi,
you can use the command GETTAB to access single db records.
Full specified or partitial specified keys can be use at GETTAB. It will return always only one record, also if a couple could match your selection.
For more advanced scenarios you can also use eCATTs Inline ABAP. In a block between the commands ABAP. ENDABAP. you can code ABAP statements, e.g. SELECT ... INTO TABLE ...
eCATT script parameters of type 'V' defined in that script using ABAP/ENDABAP will be transfered into the ABAP block and back to script after ABAP perform.
Best regards
Jens -
ECatt - ABAP WebDynpro - Floorplan Manager
Does anyone know how to create eCatt scripts for ABAP WebDynpro applications that contain Application Configurations using the Floorplan Manager. We are using SRM 7.0 and all user transactions are WebDynpro based. In order to regression test changes to certain development objects we want to utilize eCatt. However, the WebDynpro applications all use the Floorplan Manager concept in SRM. So, there is one basic WebDynpro Application Component (FPM_OIF_COMPONENT). There are multiple WebDynpro Applications defined (in our example, /sapsrm/wda_l_fpm_oif) for this one application component. Within this Application, there are multiple application configurations (in our example /SAPSRM/WDAC_I_FPM_OIF_SC_PROF).
Does anyone know if:
A. eCatt supports WebDynpro ABAP (I have seen many old posts that indicate WebDynpro ABAP is not supported but nothing recent)
B. How to create test scripts using Application components with multiple applications and multiple application configurations.
Thanks!Thanks Thomas for your quick reply.
Thomas Jung wrote:
Testing is done via Web Dynpro Application. So you would need to create an application (even if just temporary for testing) for each configuration set that has the application configuration built into the application parameters.
A point of clarification:
Within the WebDynpro Component (FPM_OIF_COMPONENT in my example), I would need to create a new Application and then a new Application Configuration that is an exact copy of the Application configuration used in the standard SAP ? If yes, that is a significant undertaking for these new SRM applications. Since this Floorplan Manager concept seems to be the wave of the future is there any plan to allow eCatt to use the input of the Application Configuration rather than (or in addition to) the WD Application itself?
Regardless, thanks again, I have been searching for this answer for a few days now.
Maybe you are looking for
-
Handle model nodes in a generic way
Hello, Is there any way to manage model nodes and model attributes in somewhat generic way? I am trying to build a generic component which can handle generic model objects execution. For example, using a generic method executeModelObject(IWDNode node
-
What exactly does 'throw' mean
I was looking over stuff on exceptions and I was wondering, exactly what does 'throw', (as in 'throwable' etc.) mean with respect to the java language? Is it so obvious that no-one ever bothered to give the word a definition? I cannot find a descript
-
What are the different ways to know if DB backup & archive log backup process have hung. How can we know the average run time of db backup & archive log backup ? What are the advisable checks to be performed / steps to be taken if we observe the back
-
Hello There is a Forte customer in Australia who would like to correspond with other VAX/VMS Forte sites. The purpose of this correspondence will be to exchange tips and techniques for using Forte on VAX/VMS machines. Please respond to me if you can
-
I have downloaded Xcode from App Store and installed it when I'm using Maverick OS. It was working fine. But yesterday I have upgraded to Yosemite 10.10.2 and found that i'm unable to launch Xcode. If I try to launch it i'm getting no responses.. How