Known Issues - Web-based SAP

General

We recommend using the UFT One SAP Solutions Add-in only when no other Web-based add-ins are loaded.

The SAP Solutions Add-in modifies Web configuration settings that may affect other add-ins or applications.

Back to top

Object Identification

Multiple browser windows

In some cases, when more than one browser is open during the test run, UFT One is unable to correctly identify certain objects.

Workaround: Clear the Enable Smart Identification check box for the Browser test objects in the Object Repository window.

You may also want to disable the Enable Smart Identification option for Browser test objects in the Object Identification Dialog Box for future test recording.

iViews

Minimized or collapsed iViews may not be recognized correctly.

SAP Enterprise Portal frames

In some cases, a frame in SAP Enterprise Portal may be recognized as a Web Frame object instead of an iView object.

In some of these, the frame name is generated dynamically.

Because the Web Frame object uses the name property to identify the object, you must modify the recorded name value to use an appropriate regular expression so that UFT One will be able to recognize it during the test run.

SAP Web table cells

When using the Object Spy or creating a checkpoint on an object inside an SAP Web table cell, UFT One may recognize the object as a WebElement (and not as the appropriate SAP Web object), if a click has not yet been performed on the object.

Workaround: Click on the object inside the SAP Web table cell before using the Object Spy or creating a checkpoint on it.

Active Screen
  • Avoid using an Active Screen that was captured when a pop-up dialog was open to add an object from the main window to the object repository. Doing this results in an incorrect object hierarchy in the object repository.

Back to top

Recording

Tables

When recording and running steps on a table control, only the table content that is visible on the client is actually available.

iView option menu / SAP Enterprise Portal title bar

Operations on the iView option menu and on objects within the page title bar of SAP Enterprise Portal are recorded as Web operations on the Frame object, and not as SAP operations on the iView object.

Dragging scroll bars

Dragging the SAP GUI for HTML table scroll bar is not recorded.

Workaround: You can record scrolling in SAP GUI for HTML tables by clicking the scroll button. Alternatively, use the Step Generator or Editor to insert an SAPTable.Object.DoScroll("up") or SAPTable.Object.DoScroll("down") statement in your test.

SetCellData method

On some tables in SAP GUI for HTML, the SetCellData method is not recorded properly.

Workaround: When recording, do one of the following after editing a text value in a table cell: 

  • Press Tab to submit the value and move to the next cell.
  • Press Enter to submit the value before clicking a location that is outside the table cell.
SAPList objects

When recording an SAPList object, you need to click the input part of the list, not its button part in order to enable UFT One to recognize the object.

SAPTable objects in S/4 HANA applications

When recording on Internet Explorer, UFT One does not record a step when you press Enter in an SAPTable cell in an S/4 HANA application.

Workaround: To instruct UFT One to record an SAPTable.Submit step when Enter is pressed, create the following registry key and set its value to 1:

Computer\HKEY_CURRENT_USER\Software\Mercury Interactive\QuickTest Professional\MicTest\Packages\SAPPackage\Settings\RecordSubmitForTableNavigateEvent

Active Screen
  • The Active Screen may not display the entire HTML page captured while recording your test.

    Workaround: Resize the Active Screen so that it best fits the HTML page size.

  • UFT One 15.0.1: When recording in Chrome, the Active Screen does not capture SAPDropDownMenu objects.

SAPDropDownMenu objects

UFT One may not be able to record on SAPDropDownMenu objects inside an SAP CRM or WDA application on Chrome or Internet Explorer.

Workaround: UFT One 15.0.1 and later: Use the Spy to learn the object and add it to the object repository. Then manually add the necessary step to the test.

SAPTabStrip().Select operations on CRM S/4 HANA

Duplicate steps may be added when recording SAPTabStrip().Select operations on Internet Explorer.

Workaround: Use the Spy to learn the object and add it to the object repository. Then manually add the necessary step to the test.

Activate method of SAPTreeView

The Activate method of SAPTreeView object cannot be recorded in Chrome.

Workaround: Use the Spy to learn the object and add it to the object repository. Then manually add the necessary step to the test.

Back to top

Running tests on SAP applications

Performance

During a run session, the SAP platform response time may be slower than the time it takes for UFT One to run the corresponding step.

Workaround: Add a Wait statement prior to the relevant step.

Cannot find objects

In some cases, when running tests on SAPEdit, SAPNavigationBar, or SAPPortal, you may receive a Cannot find object error. 

Workaround: Do one of the following:

  • Ensure that the object properties are unique and correct.

  • Modify the registry as specified below:

    For 32-bit computers: In the HKEY_LOCAL_MACHINE\Software\Mercury Interactive\QuickTestProfessional\MicTest\AbortIfHangInSendData key, set the value of DWORD to 0.

    For 64-bit computers: In the HKEY_LOCAL_MACHINE\Software\Wow6432Node\Mercury Interactive\QuickTestProfessional\MicTest\AbortIfHangInSendData key, set the value of DWORD to 0.

    Note: Some registry keys intentionally include previous company branding, due to backward compatibility considerations.

ITS frames

When running a test on an ITS frame in an SAP Enterprise Portal iView, the ITS menu sometimes fails to operate properly.

Workaround: Enlarge the iView size and/or increase the Object Synchronization Timeout and then run the test again.

Web-based CRM systems

Use CRM system test mode:

When using UFT One to test Web-based CRM systems, make sure that the CRM system is in test mode. You can do this by adding "?sap-testmode=X" to the URL.

CRM 7.02 and 7.03:

When testing applications developed using CRM 7.02 or 7.03, the SAPList.Select method may generate parameter errors.

If this occurs, add a Click step before your Select step to avoid future errors.

CRM S4 HANA:

When testing CRM systems, the SAPRadioGroup.Highlight and SAPRadioGroup.CaptureBitmap methods are not supported.

SAPTable objects

On some SAPTable objects, the FindRowByCellContent method does not work correctly if the row to find is not visible in the table. If this happens, add an extra step to scroll to make the row visible.

SAPList objects in SAP Tables in S/4 HANA applications

In some S/4 HANA applications, running an SAPList().Select method on a list contained in a table cell does not select from the list.

Workaround: Add a step to select the table cell before the step that selects from the list inside the cell.

Example:

SAPTable("MyTable").SelectCell X,Y

SAPList("MyList").Select

SAPDropDownMenu

UFT One may fail to identify SAPDropDownMenu objects in SAP NWBC, WDA, or EP applications during runtime.

Workarounds:

  • Add the Logical name and innertext description properties to the object in the object repository, and run your test again. If the innertext property does not provide a unique identification, use the index property instead.
  • If the above workarounds do not resolve the issue, perform the following: In Object Identification, add the 'html id' property to the SAPDropDownMenu object's Mandatory Properties.

SAPDropDownMenu objects with sub-menus

If you had selected an item in a sub-menu of an SAPDropDownMenu object while recording, the object recorded will be the sub-menu instead of the parent. This may cause your test run to fail.

Workaround: To avoid errors, before running your test, manually change the description properties in the object repository to match the parent menu instead of the sub-menu.

Cross-browser test support

In Internet Explorer, UFT One may fail to run an SAPButton.Click operation that was recorded in Chrome.

Workaround: In the object repository, replace the assistive property html tag with html id.

SAPNWBC.DetailedNavigation

When you run a SAPNWBC.DetailedNavigation step that navigates to a menu item under a folder in the left navigation tree in Chrome, an error occurs.

Workaround: Add a step to navigate to the parent folder first and then run the step that navigates to the child menu item.

SAPFrame object

If you add a checkpoint for an SAPFrame object that contains an image with the name ending with "." in Chrome, UFT One may fail to run the added checkpoint in Internet Explorer.

Note: SAPFrame objects are supported in UFT One 15.0.2 or later.

Workaround: Remove the check for the image from the checkpoint.

SAPTreeView.SelectMenuItem

In Internet Explorer, UFT One may fail to run SAPTreeView.SelectMenuItem steps that were manually added to the test.

Workaround: Use the Spy to learn the object and add it to the object repository. Then manually add the necessary step to the test.

Back to top

Fiori applications

Using a Set method in two consecutive steps

When working with Fiori applications, errors may occur when running a test with the sapUIObject value set to a variable in your script, where a Set method is used twice in a row.

For example:

set sapObject=Browser("DatePicker - sap.m").Page("DatePicker - sap.m").SAPUICalendar("DP1-describedby")

sapObject.SetDate "20150114"

sapObject.SetDate "000000"

Update your script using one of the following methods:

Extra objects in Chrome

When working in Chrome, when you add certain objects to the object repository, UFT One adds many extra objects.

Workaround: Use a different browser (IE or Firefox) or manually remove the unwanted objects from the repository.

Recording a SetDate step on an SAPUICalendar

When working with Fiori applications, SetDate on a Calendar object with a Time picker does not properly record and run the Time part.

Workaround: Add a WebEdit.Set step to your test manually.

For example:

WebEdit.Set "Jan 23, 2019, 11:46:00 AM"

Recording a SetDateTime step on an SAPUIDateTimeInput

When recording on Fiori applications, SAPUIDateTimeInput.SetDateTime are not recorded.

Workaround: While recording, before selecting a date in the SAPUIDateTimeInput object, click the text box to bring the SAPUIDateTimeInput object into focus.

Browser refreshes when using Submit method

When both WEB and SAP add-ins are enabled, the browser will refresh If you use a Submit method in Firefox/Chrome after using webUtil.

Workarounds:

  • Use systemUtil instead of webUtil.
  • Use DeviceReplay to move the focus point from URL-Textbox to the one you want to submit, before the submit method. For example:

    WebUtil.LaunchBrowser "FIREFOX"

    Browser("micclass:=browser").Navigate "https://sapui5.hana.ondemand.com/1.44.27/test-resources/sap/m/Dialog.html"

    Browser("micclass:=browser").Page("micclass:=page").SAPUIButton("name:=Simple Dialog").Click

    Set dr = CreateObject("Mercury.DeviceReplay")

    ax = Browser("micclass:=browser").Page("micclass:=page").SAPUIDialog("name:=Simple Dialog").GetROProperty("abs_x")

    ay = Browser("micclass:=browser").Page("micclass:=page").SAPUIDialog("name:=Simple Dialog").GetROProperty("abs_y")

    dr.MouseClick ax,ay,LEFT_MOUSE_BUTTON

    Browser("micclass:=browser").Page("micclass:=page").SAPUIDialog("name:=Simple Dialog").Submit

Back to top

SAPUI5-specific limitations

Desktop/mobile

Because the SAPUI5 add-in supports both desktop and mobile applications, not all methods for all objects are supported for both desktop and mobile applications.

Application alert messages

When running a test or component on SAPUI5 test objects, application Alert messages for some objects are not displayed.

Workaround: Do one of the following:

  • Make sure your test does not contain steps that need to be performed on the Alert message.

  • Add an If statement to your test for the object that triggers the alert to check if the Alert exists.

Nested table objects

If your SAPUI5 application contains nested table objects, inserting a checkpoint on the nested table object shows only the parent SAPUITable object.

Workaround: Select the nested WebTable objects and create checkpoints for the WebTable object instead of the parent SAPUITable object.

SAPUIMenu objects

When using the Object Spy to view an SAPUIMenu object or recording an SAPUIMenu object which is hidden in closed status, you may be unable to:

  • Add the menu object to the repository on Firefox and Chrome browsers with the Add Object to the Repository button

  • Record the object on Chrome browsers.

  • Add checkpoint or output value steps in Firefox and Chrome browsers

Disabled controls

When working with mobile SAPUI5 applications, UFT One cannot use the Object Spy on some disabled controls (like the SAPUIButton and SAPUITextEdit) due to the application object properties.

Internet Explorer 11

When working in Internet Explorer 11, if your application requires you to scroll down to perform a button click, the SAPUIButton.Click method does not click the button.

Workaround: Use an SAPUIButton.Submit method instead.

ChildObjects method

Using the ChildObjects method on some objects returns a different result between browsers.

Back to top

SAPWDJ-specific limitations

Load your Add-in

If you try to record objects in an SAP WDJ application without the SAPWDJ add-in loaded, UFT One records only some of the objects correctly.

Workaround: Restart UFT One and load the SAP WDJ Add-in.

Performance

During a run session, the response time of the SAP platform running an SAP Web Dynpro Java (WDJ) application may be slower than the time it takes for UFT One to run the corresponding step.

Workaround: Add a Wait statement prior to the relevant step or set the Delay each step execution option in the Test Runs pane of the Options dialog box (Tools > Options > GUI Testing tab > Test Runs node) to the necessary wait period (in milliseconds)

Unsupported features

The following functionalities are not supported for SAP WDJ applications:

  • Selection of non-visible table rows

  • Interaction with the application scroll bar

  • Menus inside table cells

  • Date navigator windows inside the application

SelectCell method

When recording steps on an SAPWDJTable object, the SelectCell method is not always recorded if you are selecting non-editable cells.

Links that open popup windows

If your table contains links that open a popup window, when using the SAPWDJTable.SelectItemInCell method to click the link, UFT One does not run the .SelectItemInCell properly.

Workaround: Associate the linkFuncLibr function library with your test. This function library is found at <UFT One installation folder>\dat\Extensibility\Web\Toolkits\SAPWDJ\FunctionLibraries\linkFuncLibr.qfl.

Back to top

SAP Business Networks applications

SAPWebExt List

Spying or adding checkpoints on an SAPWebExt List objects in SAP FieldGlass is not supported.

The SAPWebExtList.Select method may fail when testing SAP FieldGlass. If this occurs, use the WebEdit.Set method instead.

SAPWebExtTable objects

Checkpoints on SAPWebExtTable objects are not supported.

Workaround: Do one of the following:

  • Restart UFT, clear the SAPWebExt addin and then add a checkpoint on a WebTable object.

  • Use the .GetCellData method

  • Add a checkpoint on the child WebTable of an SAPWebExtTable object.

Back to top

SAP WebDynpro ABAP applications

SAPButton.Click methods

Recording an SAPButton.Click method on WebDynpro ABAP sites may cause browser delays.

Workaround: Do one of the following:

  • Wait for the browser to respond
  • Pause recording and click again
  • Refresh the browser and try again
SAPTable objects
  • A click operation on an SAPTable object is not recorded.

    Workaround: Manually add the object as a WebElement and add a WebElement. Click step to your test.

  • An unspecified error may occur when adding checkpoints for SAPTable objects.

    Workaround: Add a registry AbortIfHangInSendData with a default value of 0 in HKEY_LOCAL_MACHINE\Software\Wow6432Node\Mercury Interactive\QuickTest Professional\MicTest.

    Note that this may cause issues when running on the other SAP technologies, such as Fiori and SAPUI5.

    Note: Some registry keys intentionally include previous company branding, due to backward compatibility considerations.

SAPTable.OpenPossibleEntries

On some applications, the SAPTable.OpenPossibleEntries operation is not recorded on IE or Chrome.

Workaround:

Click the cell first, then click the icon beside cell to record OpenPossibleEntries.

Remove any extra SetCellData steps that are recorded.

SAPTable.SelectCell method: General recording

When using the SelectCell method on SAPTable objects in SAP WDA 7.5 applications:

  • If the table cell is located in a popup dialog window that closes immediately after clicking, UFT One cannot record the action.

  • You may need to click twice on the table cell to enable UFT One to record the action.

SAPTable.SelectCell method: Recording table objects that disappear in your application

If a table object disappears in the application immediately after a select operation is performed, SelectCell methods are not recorded on the table object.

Workaround: Manually add the SAPTable.SelectCell method after recording.

Back to top

Dynamic displays

If your WebDynpro ABAP or EP app is configured with dynamic display features when scrolling, you may have issues retrieving cell or list data that is currently invisible.

To prevent this, ensure that all your data is fully loaded before running your step, spying, or highlighting.

For example:

Workaround for tables:

Before your SAPTable.GetCellData method, add steps to scroll down and display all row data.

Then, use the GetCellData method with the current row value.

For example:

'get value in row 1
print Browser("WDR_TEST_C_TABLE [Web").Page("Web Dynpro Test Suite").SAPTable("[Demo Table Part 1]").GetCellData (2,4)
For Iterator = 1 To 4 Step 1
    wait 1
    Browser("WDR_TEST_C_TABLE [Web").Page("Web Dynpro Test Suite").SAPButton("SAPButton_2").Click
Next
'get value in row 7 which is shown in line 4 after scroll
print Browser("WDR_TEST_C_TABLE [Web").Page("Web Dynpro Test Suite").SAPTable("[Demo Table Part 1]").GetCellData (4,4)

Workaround for lists:

Activate the SAPList object before using the GetItem method or spying.

For example, first select or click the list, or use the Select or Click method in your test.

Back to top

See also: