Tutorials and samples
Requirements:
-
All required Agent Systems have been configured (see Agent Configuration to learn how to do that).
-
Synchronization of all required Agent Systems has been done (see Synchronization with Agent system section).
-
PRO only. Since of 2310 Figaf Tool enables AM/BI logging during creating a recording request or running a test case if
ICO Loggingmessages logging approach is used for the related PRO agent or integration objects. So if you would like to test PRO scenarios withICO Loggingand the scenario relates to one of the following cases:-
scenario has single receiver interface for one receiver with non-empty condition - condition is lost during update through public web service, so, it’s required to recover it.
-
adapter engine name for wildcard sender ICOs (when it’s not empty, i.e., decentral adapter engine is configured) - WS model doesn’t have that parameter at all so that it’s required to update it after upload.
then additional SAP PRO client libraries must be available in runtime classpath. They are not included into the build, so they should be added to a folder (you can create
libsfolder in the folder with jdbc driver) and then the path to thatlibsfolder should be passed through-Dloader.pathparameter in the bootstrap command (see that section). If any of these libraries are missing, you will see the following error during transport creation or checking imported objects:
Required libraries:
-
com.sap.aii.utilxi.core.jar- can be downloaded from<PRO system root url>/dir/directory/com.sap.aii.utilxi.core.jar -
com.sap.xpi.ib.core.jar- can be downloaded from<PRO system root url>/dir/directory/com.sap.xpi.ib.core.jar -
com.sap.xpi.ibdir.core.jar- can be donwloaded from<PRO system root url>/dir/directory/com.sap.xpi.ibdir.core.jar -
sap.com~tc~bl~guidgenerator~impl.jar- can be downloaded from<PRO system root url>/dir/directory/sap.com~tc~bl~guidgenerator~impl.jar
If some of additional libraries aren’t in the classpath, the corresponding changelist will be rejected.
AM/BI logging settings aren’t automatically updated for receiver wildcard ICOs. You have to enable the settings manually.
-
-
CPI only. If you would like to test IFlow with nested splitters and/or multicasts, it’s required to manually add/update special header
FigafMulticastIndexafter each multicast (for each branch) andFigafSplitIndexafter each splitter. At first time that headers should be just initialized with the value ofCamelMulticastIndexandCamelSplitIndexaccordingly. For nested splitters/multicasts it should append a new context value:<multicast index from the top level multicast>_<multicast index from the nested multicast>. For example:FigafMulticastIndex:2_3_4- that value means that message passed 2nd branch of the 1st multicast, then 3rd branch of the 2ns nested multicast then 4th branch of the 3rd nested multicast. -
Api Management only. If instance is run on SAP BTP deployment, Cloud Foundry,configure corresponding API Provider. Otherwise, configure subaccount and mapping in Cloud Connector, related destination in SAP BTP Cockpit and corresponding API Provider.
Default name of API Provider used by the tool is FigafTestingToolApiProvider, but you can define any name and set it to irt.testing.api-management.figaf-api-provider bootstrap property.
The tool creates Key Value Map FigafTestingToolKVM during recording and updates it during testing.
1. E2e testing of scenario (common use case)
In this section we describe the standard use case with e2e testing of scenario.
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agentand run synchronization (see Synchronization with Agent system section). -
Choose the integration objects that you want to create
test casesfor. -
Click on
Record messages. It opensCreate recording requestsdialog box.
-
Enter
Titleof createdTest Suite(e.g.Test Suite 1) and click onSave. If chosen objects haven’t been licensed yet, you will see the following error:
Click on
Request missing licensesto update object licenses.After confirming the dialog box,
Test Suite: Test Suite 1page is opened.
-
Send the messages to the scenario or wait for messages if the scenario is scheduled.
-
Select all recordings and click on
Poll remote messages.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.It opens
Polling resultsdialog box.
-
-
When
Statusof all recordings isCOMPLETED, close the dialog box. -
Select all recordings and click on
. It opens Test Case Creationdialog box, where you can configure:-
Test Objectsfor new test case. -
Test Case Type-REGRESSIONorBASELINE.Regression testing- app sends prepared input message from test case to the integration scenario and then compares actual output with prepared expected output.Baseline testing- app records a full message group (inbound and outbound messages) from integration scenario relying on external natural trigger, then compares that message group with the related message group in test case. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Msg Groups Countthat will be used in new test case.
-
-
Once you finish, click on
Create Test Case(s).Test Objects are resolved automatically by the following rules:
-
For CPI agents objects with the same Technical Name will be used.
-
For PRO agents:
-
Scenario mappings is used (if it’s configured).
-
If test agent contains ICO with virtual receiver and ICO without receiver, then ICO without receiver will be mapped.
-
-
-
Go to the
LINKED TEST CASEStab. -
To run created
test suite(it runs all linkedtest cases) click on
. -
Go to the
LAST RESULTtab. -
Click on
Poll remote results.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.When polling is finished, close the dialog box clicking on
Close.If data in the table is not refreshed, click on
. -
-
You can see last test suite run results in the table.
-
To check details of exact test run result click on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and recompare results clicking on
. -
To view all
Test Suiterun results go to theRESULTS HISTORYtab on test suite page.
2. E2e testing of scenario (fetch chosen message groups, PRO scenarios except RDs)
In this section we describe e2e testing of scenario using fetch chosen message groups recording policy (since of 2209 Figaf Tool supports this feature). The feature is available for PRO scenarios except RDs when PRO Agent has Messages logging approach equals to SAP Log Module or ICO Logging.
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agentand run synchronization (see Synchronization with Agent system section). -
Choose the integration objects that you want to create
test casesfor. -
Click on
Record messages. It opensCreate recording requestsdialog box.
-
Enter
Titleof createdTest Suite(e.g.Test Suite 1), choose 'Fetch chosen message groups'. Once it’s chosen,Chosen root messagescan be configured by clicking on
button. It opens search message groups dialog where you can select message groups:
Once the data is saved, configure message groups dialog is opened:
You can configure root message groups by adding them manually, searching for them and deleting. Once the configuration is saved, you will be returned to
Create recording requestsdialog. Click onSaveto create recordings. If chosen objects haven’t been licensed yet, you will see the following error:
Click on
Request missing licensesto update object licenses.After confirming the dialog box,
Polling resultsdialog box is opened.
-
Select all recordings and click on
. It opens Test Case Creationdialog box, where you can configure:-
Test Objectsfor new test case. -
Test Case Type-REGRESSIONorBASELINE.Regression testing- app sends prepared input message from test case to the integration scenario and then compares actual output with prepared expected output.Baseline testing- app records a full message group (inbound and outbound messages) from integration scenario relying on external natural trigger, then compares that message group with the related message group in test case. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Msg Groups Countthat will be used in new test case.
-
-
Once you finish, click on
Create Test Case(s).Test Objects are resolved automatically by the following rules:
-
For CPI agents objects with the same Technical Name will be used.
-
For PRO agents:
-
Scenario mappings is used (if it’s configured).
-
If test agent contains ICO with virtual receiver and ICO without receiver, then ICO without receiver will be mapped.
-
-
-
Go to the
LINKED TEST CASEStab. -
To run created
test suite(it runs all linkedtest cases) click on
. -
Go to the
LAST RESULTtab. -
Click on
Poll remote results.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.When polling is finished, close the dialog box clicking on
Close.If data in the table is not refreshed, click on
. -
-
You can see last test suite run results in the table.
-
To check details of exact test run result click on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and recompare results clicking on
. -
To view all
Test Suiterun results go to theRESULTS HISTORYtab on test suite page.
3. E2e testing of receiver determination (PRO, dual stack system)
In this section we describe a use case with e2e testing of receiver determination (since of 2.12 Figaf Tool supports this feature).
Agent System should be configured with enabled dual stack recording (property Enable dual stack recording on Agent Configuration).
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agentand run synchronization (see Synchronization with Agent system section). -
Choose the integration objects that you want to create
test casesfor. -
Click on
Record messages. It opensCreate recording requestsdialog box.
-
Enter
Titleof createdTest Suite(e.g.Test Suite 1), choose 'RD historic lookup period' (the left bound is calculated as current time minus specified lookup period. E.g., if 'X hours' lookup period is selected, then ALL messages which satisfy interface filter and have been sent during last X hours will be polled), and click onSave. If chosen objects haven’t been licensed yet, you will see the following error:
Click on
Request missing licensesto update object licenses.After confirming the dialog box,
Test Suite: Test Suite 1page is opened.
-
Trigger agent scenario.
-
Select all recordings and click on
Poll remote messages.It opens
Polling resultsdialog box.
-
When
Statusof all recordings isCOMPLETED, close the dialog box. -
Select all recordings and click on
. It opens Test Case Creationdialog box, where you can configure:-
Test Objectsfor new test case. -
Test Case Type-REGRESSIONorBASELINE.Regression testing- app sends prepared input message from test case to the integration scenario and then compares actual output with prepared expected output.Baseline testing- app records a full message group (inbound and outbound messages) from integration scenario relying on external natural trigger, then compares that message group with the related message group in test case. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Msg Groups Countthat will be used in new test case.
-
-
Once you finish, click on
Create Test Case(s).Test Objects are resolved automatically by the following rules:
-
For CPI agents objects with the same Technical Name will be used.
-
For PRO agents:
-
Scenario mappings is used (if it’s configured).
-
If test agent contains ICO with virtual receiver and ICO without receiver, then ICO without receiver will be mapped.
-
-
-
Go to the
LINKED TEST CASEStab. -
To run created
test suite(it runs all linkedtest cases) click on
. -
Go to the
LAST RESULTtab. -
Wait for messages to be polled (refresh the page from time to time).
If data in the table is not refreshed, click on
. -
You can see last test suite run results in the table.
-
To check details of exact test run result click on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and recompare results clicking on
. -
To view all
Test Suiterun results go to theRESULTS HISTORYtab on test suite page.
4. E2e secured testing of scenario with sensitive data (common use case)
Secured testing with sensitive data limits the access granted to developers, to ensure they will not see confidential data. Such testing can be used when your test data is confidential and it isn’t advisable to share this information with people that have not been cleared for it.
Below we describe the standard use case with e2e secured testing of scenario with sensitive data (since of 2.12 Figaf Tool supports this feature).
Agent System should be configured with confidential data (property Has confidential data on Agent Configuration).
Testing with sensitive data is run on secured test systems, so you need to configure Agent (it can be the same Agent or another) as secured (property Secured test system on Agent Configuration).
The following actions have to be done on the PRO system configured as secured to prevent browsing of sensitive payloads sent from Figaf Tool:
-
Add the rules in SAPWebDispatcher file (e.g.,
<path_to_PRO_system>\SYS\global\security\data\icm_filter_rules.txt):if %{REMOTE_ADDR} !stricmp 127.0.0.1 [AND] if %{REMOTE_ADDR} !stricmp ::1 [AND] if %{REQUEST_METHOD} stricmp "GET" [AND] if %{FORMFIELD:afwmsgkey} !stricmp "" RegIRedirectUrl ^/webdynpro/dispatcher/sap.com/tc~lm~itsam~ui~mainframe~wd/FloorPlanApp.*$ /webdynpro/resources/figaf.com/irt-message-filter/MessagePageServlet [QSA] if %{REMOTE_ADDR} !stricmp 127.0.0.1 [AND] if %{REMOTE_ADDR} !stricmp ::1 [AND] if %{REQUEST_METHOD} stricmp "GET" [AND] if %{FORMFIELD:afwmsgkey} !stricmp "" RegIRedirectUrl ^/webdynpro/resources/sap.com/tc~lm~itsam~ui~mainframe~wd/FloorPlanApp.*$ /webdynpro/resources/figaf.com/irt-message-filter/MessagePageServlet [QSA] if %{REMOTE_ADDR} !stricmp 127.0.0.1 [AND] if %{REMOTE_ADDR} !stricmp ::1 [AND] if %{REQUEST_METHOD} stricmp "GET" RegIRedirectUrl ^/webdynpro/resources/sap.com/tc~lm~itsam~co~ui~xi~msg~wd/Components/com.sap.tc.lm.itsam.co.ui.xi.msg.ximessagedetailed.XIMessageDetailed(.*)$ /webdynpro/resources/figaf.com/irt-message-filter/MessageContentPartsServlet$1 [QSA] if %{REMOTE_ADDR} !stricmp 127.0.0.1 [AND] if %{REMOTE_ADDR} !stricmp ::1 [AND] if %{REQUEST_METHOD} stricmp "GET" RegIRedirectUrl ^/mdt/messagecontent$ /webdynpro/resources/figaf.com/irt-message-filter/DownloadMessageContentServlet [QSA] -
Restart the system.
-
Deploy
IRT-MESSAGE-FILTER-1.0.scacomponent.
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agentand run synchronization (see Synchronization with Agent system section). -
Choose the integration objects that you want to create
test casesfor. -
Click on
Record messages. It opensCreate recording requestsdialog box.
-
Enter
Titleof createdTest Suite(e.g.Test Suite 1) and click onSave. If chosen objects haven’t been licensed yet, you will see the following error:
Click on
Request missing licensesto update object licenses.After confirming the dialog box,
Test Suite: Test Suite 1page is opened.
-
Send the messages to the scenario or wait for messages if the scenario is scheduled.
-
Select all recordings and click on
Poll remote messages.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.It opens
Polling resultsdialog box.
-
-
When
Statusof all recordings isCOMPLETED, close the dialog box. -
Select all recordings and click on
. It opens Test Case Creationdialog box, where you can configure:-
Test Objectsfor new test case. -
Test Case Type-REGRESSIONorBASELINE.Regression testing- app sends prepared input message from test case to the integration scenario and then compares actual output with prepared expected output.Baseline testing- app records a full message group (inbound and outbound messages) from integration scenario relying on external natural trigger, then compares that message group with the related message group in test case. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Msg Groups Countthat will be used in new test case.
-
-
Once you finish, click on
Create Test Case(s).Test Objects are resolved automatically by the following rules:
-
For CPI agents objects with the same Technical Name will be used.
-
For PRO agents:
-
Scenario mappings is used (if it’s configured).
-
If test agent contains ICO with virtual receiver and ICO without receiver, then ICO without receiver will be mapped.
-
Test Objects only from secured Agents can be selected.
-
-
Go to the
LINKED TEST CASEStab. -
To run created
test suite(it runs all linkedtest cases) click on
. -
Go to the
LAST RESULTtab. -
Click on
Poll remote results.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.When polling is finished, close the dialog box clicking on
Close.If data in the table is not refreshed, click on
. -
-
You can see last test suite run results in the table.
-
To check details of exact test run result click on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
If current user doesn’t have role
IRTSensitivePayloadViewer, he/she will view encoded payloads, e.g.:
Users with role
IRTSensitivePayloadViewerare allowed to view encoded and original version of payloads, e.g.:
To encode
XMLandJSONdocuments they are parsed and only element values and attributes (for XML) are replaced in the following way:-
Uppercased letter→X -
Lowcased letter→x -
Number→9 -
Space character→ no changes -
Symbol character→# -
Strings with length greater than
20are truncated,…is added to the end of string.Encoded view is supported only for XML and JSON documents. For other types payloads won’t be viewed for users without
IRTSensitivePayloadViewerrole.
-
-
When you finish with adding items and message properties to ignore list, close the dialog box and recompare results clicking on
. -
To view all
Test Suiterun results go to theRESULTS HISTORYtab on test suite page.
5. E2e testing of Api Proxy (Api Management)
In this section we describe the standard use case with e2e testing of Api Proxy.
Requirements and notes:
If instance is run on SAP BTP deployment, Cloud Foundry,configure corresponding API Provider. Otherwise, configure subaccount and mapping in Cloud Connector, related destination in SAP BTP Cockpit and corresponding API Provider.
Default name of API Provider used by the tool is FigafTestingToolApiProvider, but you can define any name and set it to irt.testing.api-management.figaf-api-provider bootstrap property.
The tool creates Key Value Map FigafTestingToolKVM during recording and updates it during testing.
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agentand run synchronization (see Synchronization with Agent system section). -
Choose the integration objects that you want to create
test casesfor. -
Click on
Record messages. It opensCreate recording requestsdialog box.
-
Enter
Titleof createdTest Suite(e.g.Test Suite 1) and click onSave. If chosen objects haven’t been licensed yet, you will see the following error:
Click on
Request missing licensesto update object licenses.After confirming the dialog box,
Test Suite: Test Suite 1page is opened.
-
Send the messages to the scenario or wait for messages if the scenario is scheduled.
-
Select all recordings and click on
. It opens Test Case Creationdialog box, where you can configure:-
Test Objectsfor new test case. -
Test Case Type-REGRESSION. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Msg Groups Countthat will be used in new test case.
-
-
Once you finish, click on
Create Test Case(s).Test Objects are resolved automatically by the following rules:
-
For CPI agents objects with the same Technical Name will be used.
-
For PRO agents:
-
Scenario mappings is used (if it’s configured).
-
If test agent contains ICO with virtual receiver and ICO without receiver, then ICO without receiver will be mapped.
-
-
-
If Api Proxy uses OAuth2 credentials, go to Api Proxy integration object page and configure
Token URL,Client IdandClient Secret:
-
Go to the
LINKED TEST CASEStab. -
To run created
test suite(it runs all linkedtest cases) click on
. -
Go to the
LAST RESULTtab. -
Wait for messages to be polled (refresh the page from time to time).
If data in the table is not refreshed, click on
. -
You can see last test suite run results in the table.
-
To check details of exact test run result click on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and recompare results clicking on
. -
To view all
Test Suiterun results go to theRESULTS HISTORYtab on test suite page.
6. E2e testing of B2B Scenario
In this section we describe the standard use case with e2e testing of B2B Scenario.
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agentand run synchronization (see Synchronization with Agent system section). -
Switch on
TPM objects
-
Choose the integration objects that you want to create
test casesfor. -
Click on
Record messages. It opensCreate recording requestsdialog box.
-
Enter
Titleof createdTest Suite(e.g.Test Suite 1) and click onSave. If chosen objects haven’t been licensed yet, you will see the following error:
Click on
Request missing licensesto update object licenses.After confirming the dialog box,
Test Suite: Test Suite 1page is opened.
-
Send the messages to the scenario or wait for messages if the scenario is scheduled.
-
Select all recordings and click on
Poll remote messages.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.It opens
Polling resultsdialog box.
-
-
When
Statusof all recordings isCOMPLETED, close the dialog box. -
Select all recordings and click on
. It opens Test Case Creationdialog box, where you can configure:-
Test Objectsfor new test case. -
Test Case Type-REGRESSIONorBASELINE.Regression testing- app sends prepared input message from test case to the integration scenario and then compares actual output with prepared expected output.Baseline testing- app records a full message group (inbound and outbound messages) from integration scenario relying on external natural trigger, then compares that message group with the related message group in test case. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Msg Groups Countthat will be used in new test case.
-
-
Once you finish, click on
Create Test Case(s).Test Objects are resolved automatically by the following rules:
-
For CPI agents objects with the same Technical Name will be used.
-
For PRO agents:
-
Scenario mappings is used (if it’s configured).
-
If test agent contains ICO with virtual receiver and ICO without receiver, then ICO without receiver will be mapped.
-
-
-
Go to the
LINKED TEST CASEStab. -
To run created
test suite(it runs all linkedtest cases) click on
. -
Go to the
LAST RESULTtab. -
Click on
Poll remote results.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.When polling is finished, close the dialog box clicking on
Close.If data in the table is not refreshed, click on
. -
-
You can see last test suite run results in the table.
-
To check details of exact test run result click on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and recompare results clicking on
. -
To view all
Test Suiterun results go to theRESULTS HISTORYtab on test suite page.
7. E2e testing of Event Mesh topics
In this section we describe the standard use case with e2e testing of Event Mesh topics.
Requirements and notes:
-
Define
Event Mesh configurationon CPI agent configuration).Use different credentials for
Event Mesh - PublisherandEvent Mesh - Subscriber. -
The tool creates queues used during recording and testing.
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agentand run synchronization (see Synchronization with Agent system section). -
Create Event Mesh Integration following the steps:
-
Click on
button and then on Create Event Mesh Integrationbutton. -
Fill
Nameof new integration. -
Select
Input topicsthat will be used by the integration. -
Select
Output topicsthat will be used by the integration. -
Enable or disable
SAP CorrelationIdusage. -
Save the data.
-
-
Choose the created Event Mesh Integration object.
-
Click on
Record messages. It opensCreate recording requestsdialog box.
-
Enter
Titleof createdTest Suite(e.g.Test Suite 1) and click onSave. If chosen objects haven’t been licensed yet, you will see the following error:
Click on
Request missing licensesto update object licenses.After confirming the dialog box,
Test Suite: Test Suite 1page is opened.
-
Send the messages to the input topic configured for Event Mesh Integration. There are several ways to send the message to the topic:
-
Trigger the IFlow
-
Send request through public API.
-
-
Select all recordings and click on
. It opens Test Case Creationdialog box, where you can configure:-
Test Objectsfor new test case. -
Test Case Type-REGRESSION. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Msg Groups Countthat will be used in new test case.
-
-
Once you finish, click on
Create Test Case(s).Test Objects are resolved automatically by the following rules:
-
For CPI agents objects with the same Technical Name will be used.
-
For PRO agents:
-
Scenario mappings is used (if it’s configured).
-
If test agent contains ICO with virtual receiver and ICO without receiver, then ICO without receiver will be mapped.
-
-
-
Go to the
LINKED TEST CASEStab. -
To run created
test suite(it runs all linkedtest cases) click on
. -
Go to the
LAST RESULTtab. -
Wait for messages to be polled (refresh the page from time to time).
If data in the table is not refreshed, click on
. -
You can see last test suite run results in the table.
-
To check details of exact test run result click on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and recompare results clicking on
. -
To view all
Test Suiterun results go to theRESULTS HISTORYtab on test suite page.
8. IFlow chain testing
In this section we describe configuration and flow of IFlow chain testing.
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agentand run synchronization (see Synchronization with Agent system section). -
Create IFlow Chain following the steps:
IFlow Chain is automatically created during PI→CPI Migration with
Pipeline Allprofile.It’s possible to delete IFlow Chains clicking on
button and then on Delete IFlow Chainsbutton.-
Click on
button and then on Create IFlow Chainbutton. -
Fill
Nameof IFlow Chain object. -
Select
Sender IFlow- sender IFlow in the chain.Only inbound message is recorded for Sender IFlow. If it’s needed to record outbound messages as well, add the IFlow toChained IFlowslist. -
Select
Chained IFlows- IFlows followingSender IFlowin the chain.All Chained IFlowsmust be licensed for testing. -
Save the data.
-
-
Go back to the
Integration Objectstab on theTesting Toolpage. -
Choose the created IFlow Chain object.
-
Click on
Record messages. It opensCreate recording requestsdialog box.
-
Enter
Titleof createdTest Suite(e.g.Test Suite 1) and click onSave. If chosen objects haven’t been licensed yet, you will see the following error:
Click on
Request missing licensesto update object licenses.After confirming the dialog box,
Test Suite: Test Suite 1page is opened.
-
Send the messages to the scenario or wait for messages if the scenario is scheduled.
-
Select all recordings and click on
Poll remote messages.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.It opens
Polling resultsdialog box.
-
-
When
Statusof all recordings isCOMPLETED, close the dialog box. -
Select all recordings and click on
. It opens Test Case Creationdialog box, where you can configure:-
Test Objectsfor new test case. -
Test Case Type-REGRESSIONorBASELINE.Regression testing- app sends prepared input message from test case to the integration scenario and then compares actual output with prepared expected output.Baseline testing- app records a full message group (inbound and outbound messages) from integration scenario relying on external natural trigger, then compares that message group with the related message group in test case. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Msg Groups Countthat will be used in new test case.
-
-
Once you finish, click on
Create Test Case(s).Test Objects are resolved automatically by the following rules:
-
For CPI agents objects with the same Technical Name will be used.
-
For PRO agents:
-
Scenario mappings is used (if it’s configured).
-
If test agent contains ICO with virtual receiver and ICO without receiver, then ICO without receiver will be mapped.
-
-
-
Go to the
LINKED TEST CASEStab. -
To run created
test suite(it runs all linkedtest cases) click on
. -
Go to the
LAST RESULTtab. -
Click on
Poll remote results.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.When polling is finished, close the dialog box clicking on
Close.If data in the table is not refreshed, click on
. -
-
You can see last test suite run results in the table.
-
To check details of exact test run result click on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and recompare results clicking on
. -
To view all
Test Suiterun results go to theRESULTS HISTORYtab on test suite page.
9. Baseline test case. Initialize inbound order number from SAP_ApplicationID
In this section we describe configuration and flow of baseline testing of CPI IFlows when inbound messages are ordered using SAP_ApplicationID value.
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agentand run synchronization (see Synchronization with Agent system section). -
Go to the Integration Object details that you want to create
test casesfor. -
Enable
Initialize inbound order number from SAP_ApplicationIDand save configuration. -
Choose the integration objects that you want to create
test casesfor. -
Click on
Record messages. It opensCreate recording requestsdialog box.
-
Enter
Titleof createdTest Suite(e.g.Test Suite 1) and click onSave. If chosen objects haven’t been licensed yet, you will see the following error:
Click on
Request missing licensesto update object licenses.After confirming the dialog box,
Test Suite: Test Suite 1page is opened.
-
Send the messages to the scenario or wait for messages if the scenario is scheduled.
-
Select all recordings and click on
Poll remote messages.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.It opens
Polling resultsdialog box.
-
-
When
Statusof all recordings isCOMPLETED, close the dialog box. -
Select all recordings and click on
. It opens Test Case Creationdialog box, where you can configure:-
Test Objectsfor new test case. -
Test Case Type-BASELINE. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Msg Groups Countthat will be used in new test case.
-
-
Once you finish, click on
Create Test Case(s).Test Objects are resolved automatically by the following rules:
-
For CPI agents objects with the same Technical Name will be used.
-
For PRO agents:
-
Scenario mappings is used (if it’s configured).
-
If test agent contains ICO with virtual receiver and ICO without receiver, then ICO without receiver will be mapped.
-
-
-
Go to the
LINKED TEST CASEStab. -
To run created
test suite(it runs all linkedtest cases) click on
. -
Go to the
LAST RESULTtab. -
Send the messages to the scenario or wait for messages if the scenario is scheduled.
-
Send request to public API
/v1/test-run-result/inbound-correlationdefining testRunId and correlation between old and new order numbers. The format should be:{ "testRunId": "ac466410-276a-45dd-b755-55b7e3717fe7", "oldCorrelationIdToNew": { "2": "5", "1": "4i" }, "startPollingAfterCorrelation": true } -
Click on
Poll remote results.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.When polling is finished, close the dialog box clicking on
Close.If data in the table is not refreshed, click on
. -
-
You can see last test suite run results in the table.
-
To check details of exact test run result click on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and recompare results clicking on
. -
To view all
Test Suiterun results go to theRESULTS HISTORYtab on test suite page.
10. Manual test case creation (PRO)
Sometimes automatic message recording isn’t appropriate (e.g. hundreds of them are used). So it is possible to manually create test cases from prepared messages:
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agent(PRO) and run synchronization (see Synchronization with Agent system section). -
Choose the integration object for which you want to create
test case. -
Click on
Create Test Casebutton. It opensTest case creationpage:
-
Configure test case:
-
Test Suite- new or existent one. -
Agent Objectfor new test case. -
Test Objectsfor new test case. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Test case Type-REGRESSIONorBASELINE.Regression testing- app sends prepared input message from test case to the integration scenario and then compares actual output with prepared expected output.Baseline testing- app records a full message group (inbound and outbound messages) from integration scenario relying on external natural trigger, then compares that message group with the related message group in test case. -
Titleof new test case. -
Message. -
Partner. -
Upload messages from:-
Archive: load archive from your local environment. -
Table: configure inbound and outbound messages and their properties, load payloads. -
Archive from server: define the path to archive from server.You can enable
Forcibly calculate order numbers using expressions from recording configurationwhenUpload messages fromisArchiveorArchive from server. If it’s enabled, order numbers will be recalculated during test case upload. SettingsOrder expressionsandUse alphanumeric order number(configured on Recording Configuration tab of Integration Object page) will be used during recalculation.Archive has to contain all inbound and outbound messages and
package-info.jsonfile, that you can create fromTest case creationpage:-
Select
Archivetype of message uploading. -
Click on
Build package-info.jsonbutton. It opensCreate package-info.json for manual uploadpage:
-
Configure all properties carefully.
For example, we have 3 inbound messages and 1 outbound message per inbound message and we don’t use DC filename template. We have prepared the following payloads:
Then our configuration will be:
It is almost done. Only configuration of From and To components is left.
If you change
Outbound messages count per one inbound, click onBuild JSONbutton. -
Once you finish with configuration click on
Build JSONbutton andDownload package-info.json.Also, you can view built json clicking on
. -
Move downloaded
package-info.jsonfile to the folder with payloads and create an archive.
-
-
-
-
Once you finish with configuration, click on
Create Test Casebutton. It creates test suite and test case and links them. As the resultTest Case Detailspage will be opened:
-
To run created test case go to
Testing Resultstab and click on
button. You will see results in the table. -
Select unfinished results and click on
Poll remote messages.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing. -
-
Inspect result clicking on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and navigate back to
Test Case Detailspage clicking on
. -
Run
test caseagain clicking on
. -
Poll remote messages again clicking on
Poll remote messages.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing. -
11. Manual test case creation (CPI)
Sometimes automatic message recording isn’t appropriate (e.g. hundreds of them are used). So it is possible to manually create test cases from prepared messages:
-
Go to the
Integration Objectstab on theTesting Toolpage. -
Select required
Agent(CPI) and run synchronization (see Synchronization with Agent system section). -
Choose the integration object for which you want to create
test case. -
Click on
Create Test Casebutton. It opensTest case creationpage:
-
Configure test case:
-
Test Suite- new or existent one. -
Agent Objectfor new test case. -
Test Objectsfor new test case. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Test case Type-REGRESSIONorBASELINE.Regression testing- app sends prepared input message from test case to the integration scenario and then compares actual output with prepared expected output.Baseline testing- app records a full message group (inbound and outbound messages) from integration scenario relying on external natural trigger, then compares that message group with the related message group in test case. -
Titleof new test case. -
Message. -
Partner. -
Upload messages from:-
Table: configure inbound and outbound messages and their configuration, load payloads. Example of message properties file:[ { "name": "header1", "value": "value", "propertyType": "TRACE_MESSAGE_HEADER", "_comment" : "supported property types: TRACE_MESSAGE_HEADER, TRACE_MESSAGE_EXCHANGE, RUN_STEP_PROPERTY" }, { "name": "header2", "value": null, "propertyType": "TRACE_MESSAGE_EXCHANGE" } ]
-
-
-
Once you finish with configuration, click on
Create Test Casebutton. It creates test suite and test case and links them. As the resultTest Case Detailspage will be opened:
-
To run created test case go to
Testing Resultstab and click on
button. You will see results in the table. -
Select unfinished results and click on
Poll remote messages.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing. -
-
Inspect result clicking on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and navigate back to
Test Case Detailspage clicking on
. -
Run
test caseagain clicking on
. -
Poll remote messages again clicking on
Poll remote messages.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing. -
12. Migrate test cases from PI to CPI
PI test case has been created (see E2e testing of scenario (common use case)).
At least one CPI agent is configured.
-
Go to Integration Objects page.
-
Select PI agent.
-
Click on required object
Interface Name. It opens Integration Object Details page. -
Go to
Agent Test Casestab. -
Select previously created test case.
-
Click on
and then on Migrate to CPIbutton.It opens
Migrate Test Casesdialog:
Where you can configure test suite (new or existent one) and
CPI IFloworIFlow Chaincreated manually or created during PI to CPI migration withPipeline Allprofile. If you want to open Test Suite page, enableOpen Test Suite’s page after test cases migrationoption.If selected IFlow was migrated from PI agent using PI to CPI migration feature, you are able to configure mapping between platforms. Since 2208.1 it’s possible to configure IFlow element ids in BPMN Model with viewer dialog clicking on
button.Once you configure all fields, click on
Save. It opens confirmation:
As the result, new test case will be created and attached to the test suite.
During the copying of the messages, interface related parameters (stepId, activity, branchId) of the last stage are initialized by value
${determineDuringFirstRun}. For other stages for bridges and BE scenario value${shouldBeMappedManually}is used. Original stage number is temporary saved in the step number, then it will be replaced by real value - it needs for BE and bridges to distinguish different original stages. -
Run created test case (either run test suite (e.g. from Test Suites page) or test case separately (e.g. from Test Cases page)).
-
Open Test Run Details page (e.g. view Test Case Details page, go to
Testing Resultstab, click on result’s
button).During the first run of the migrated test case, interface metadata of the last stage (4th for BE or bridges, 2nd for other) is automatically updated. For BE/bridges, 2nd stage entries will have
UNFINISHEDstate. You can chose, whichUNEXPECTEDmessage should match this result: click on message’s
and click on Map interface metadata.Once unexpected testing result matched with the unfinished result, missing data is copied to
UNFINISHEDresult,UNEXPECTEDresults are deleted, and if it needs, the message are sent to the comparison.
13. Migrate test cases from ICO to B2B Scenario
PI test case has been created (see E2e testing of scenario (common use case)).
At least one CPI agent is configured.
-
Go to Integration Objects page.
-
Select PI agent.
-
Click on required object
Interface Name. It opens Integration Object Details page. -
Go to
Agent Test Casestab. -
Select previously created test case.
-
Click on
and then on Migrate to CPIbutton.It opens
Migrate Test Casesdialog:
Where you can configure test suite (new or existent one) and select
B2B Scenarioobject. If you want to open Test Suite page, enableOpen Test Suite’s page after test cases migrationoption.Once you configure all fields, click on
Save. It opens confirmation:
As the result, new test case will be created and attached to the test suite.
During the copying of the messages, interface related parameters (stepId, activity, branchId) of the last stage are initialized by value
${determineDuringFirstRun}. For other stages for bridges and BE scenario value${shouldBeMappedManually}is used. Original stage number is temporary saved in the step number, then it will be replaced by real value - it needs for BE and bridges to distinguish different original stages. -
Run created test case (either run test suite (e.g. from Test Suites page) or test case separately (e.g. from Test Cases page)).
-
Open Test Run Details page (e.g. view Test Case Details page, go to
Testing Resultstab, click on result’s
button).During the first run of the migrated test case, interface metadata of the last stage (4th for BE or bridges, 2nd for other) is automatically updated. For BE/bridges, 2nd stage entries will have
UNFINISHEDstate. You can chose, whichUNEXPECTEDmessage should match this result: click on message’s
and click on Map interface metadata.Once unexpected testing result matched with the unfinished result, missing data is copied to
UNFINISHEDresult,UNEXPECTEDresults are deleted, and if it needs, the message are sent to the comparison.
14. Send Message Requests
Since 2506 Figaf Tool supports message sending through HTTPS, IDOC, SOAP or ProcessDirect adapters to IFlows.
To send message follow the steps:
-
Go to the
Send Messagetab on theTesting Toolsection:
-
Create Request and configure the data:
-
Nameof the request. -
Integration Objectused to send messages. -
Collectionis new collection or existing one. -
URLused to send messages, will be filtered for unsupported adapter types. -
Adapter Typerelated to theURL.
-
-
Once everything is configured, save the request and run it.
15. Run send message request for recording
Since 2508 Figaf Tool supports message sending for recording through HTTPS, IDOC and ProcessDirect adapters to IFlows.
To send message for recording:
-
Go to the
Send Messagetab on theTesting Toolsection. -
Go to a send message request.
-
Click on
Run for recording.It enables Trace mode for the IFlow and saves SAP_MessageProcessingLogId for the message.
-
Click on
Record messages. Select SAP_MessageProcessingLogIds and continue. It opensCreate recording requestsdialog box.
-
Enter
Titleof createdTest Suite(e.g.Test Suite 1) and click onSave. If chosen objects haven’t been licensed yet, you will see the following error:
Click on
Request missing licensesto update object licenses.After confirming the dialog box,
Test Suite: Test Suite 1page is opened.
It opens
Polling resultsdialog box.
-
When
Statusof all recordings isCOMPLETED, close the dialog box. -
Select all recordings and click on
. It opens Test Case Creationdialog box, where you can configure:-
Test Objectsfor new test case. -
Test Case Type-REGRESSIONorBASELINE.Regression testing- app sends prepared input message from test case to the integration scenario and then compares actual output with prepared expected output.Baseline testing- app records a full message group (inbound and outbound messages) from integration scenario relying on external natural trigger, then compares that message group with the related message group in test case. -
Landscape- binary landscape used to identify development object. So if it’s empty,Agent Objectmust be licensed for testing. IfLandscapeis selected, related composite landscape will be used for license check and source development object must be licensed for testing. See landscapes configuration PRO and CPI. -
Msg Groups Countthat will be used in new test case.
-
-
Once you finish, click on
Create Test Case(s).Test Objects are resolved automatically by the following rules:
-
For CPI agents objects with the same Technical Name will be used.
-
For PRO agents:
-
Scenario mappings is used (if it’s configured).
-
If test agent contains ICO with virtual receiver and ICO without receiver, then ICO without receiver will be mapped.
-
-
-
Go to the
LINKED TEST CASEStab. -
To run created
test suite(it runs all linkedtest cases) click on
. -
Go to the
LAST RESULTtab. -
Click on
Poll remote results.Since Figaf Tool 2.15 automatic polling is added for SAP CPI
Agents. Once the messages have been run successfully, automatic polling is started.Since Figaf Tool 2.15.2 active polling statistics can be viewed. If there is polling in progress for the integration objects and you open another poll remote data dialog, then
-
recordings/test runs which are in both polling requests will be marked as
SKIPPED_AS_DUPLICATEand statistics will be copied from original item and shown on UI in the new one. -
recordings/test runs which are not in the original polling request will be
SKIPPEDin the new one.
Since Figaf Tool 2305 polling will not be started if there is already a started polling requests with same objects in progress or polling has been already completed for all selected objects.
If you have polled almost all messages and you just need to poll small number of messages to finish testing, you can enable option
Ignore messages cache during pollingon Application configuration page. When this option is enabled, already polled messages won’t be skipped. It affects performance when the amount of messages is large and you just need to poll small number to finish testing.When polling is finished, close the dialog box clicking on
Close.If data in the table is not refreshed, click on
. -
-
You can see last test suite run results in the table.
-
To check details of exact test run result click on its
button. It opens Test Run Details page.
-
To open diff viewer and check differences between expected and actual messages, click on the inspected item’s
button and then click on Diffs. It opensDifferencesdialog box. Here you can add items (click twice on the required item) and message properties (click on the required message property) to ignore list.Add items and message properties to ignore list once.
-
When you finish with adding items and message properties to ignore list, close the dialog box and recompare results clicking on
. -
To view all
Test Suiterun results go to theRESULTS HISTORYtab on test suite page.