This is a sample application for a jMeter test. The application comes with a very limited UI that allows the user to insert a value from a dropdown list using a popup. To install the application, use the attached EAR file. [1]

WDJ application

After deploying the ear, start the WDJ application by opening the URL in the browser: http://server:port/webdynpro/resources/demo.sap.com/tobias~jmeter~wdj/JMeter

/wp-content/uploads/2013/08/samplewdjappjmeter1_258009.jpg

Selecting the button “Select value” opens a popup:

/wp-content/uploads/2013/08/samplewdjappjmeter2_258010.jpg

Select a value from the dropdown list.

/wp-content/uploads/2013/08/samplewdjappjmeter3_258044.jpg

Clicking the select button closes the popup. In the main window the value changes accordingly to the selected value. As you can see, nothing special.

/wp-content/uploads/2013/08/samplewdjappjmeter4_258045.jpg

Application explained

WDJ project

/wp-content/uploads/2013/08/samplewdjappjmeter5_258046.jpg

JMeterCompView

/wp-content/uploads/2013/08/samplewdjappjmeter6_258047.jpg

Action for button Select value


public void onActionOpenPopup(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

{

  IWDWindowInfo windowInfo = wdComponentAPI.getComponentInfo().findInWindows(“PopupWindow”);

  IWDWindow window = wdComponentAPI.getWindowManager().createModalWindow(windowInfo);

  window.setWindowPosition(WDWindowPos.CENTER);

  window.setTitle(“Select value popup window”);

  window.show();

  wdContext.currentContextElement().setPopup(window);

}


Popup

Values is bound to attribute days

/wp-content/uploads/2013/08/samplewdjappjmeter7_258048.jpg

Attribute days is a Java Dictionary Type (simple type)

/wp-content/uploads/2013/08/samplewdjappjmeter8_258049.jpg

Controller

The views share the same context attribute days. So when it is changed in one view, the new value is also valid in the other view.

/wp-content/uploads/2013/08/samplewdjappjmeter9_258050.jpg

[1] While SCN Jive allows you to attach files to documents, there is a rather silly restriction regarding the file extension. EAR is on the blacklist, so I had to add .txt to be able to upload it, and in the end Jive zips it (???). You’ll have to execute the steps in reverse order to get the ear (unzip, rename).

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply