SoapUI on windows 10 - high DPI/4K scaling issue

2019-02-01 14:30发布

SoapUI doesn't seem to be DPI-Aware and displays too small on my high DPI screen (tiny text and buttons). Other applications are running fine (screen resolution 3840 x 2160).

toosmall

Version: SoapUI 5.1.2
OS: Windows 10

I have tried:

  • Configure SoapUI to run with "Disable display scaling on high DPI settings" - some parts of SoapUI are looking even bigger and don't display properly (image)
  • Changing resolution
  • Changing font size (Preferences > Editor Settings > Select font...)


Therefore I assume, that SoapUI pretends to be DPI-Aware, but does not really scale up itself. Does anyone have the same issue?

标签: soapui
5条回答
冷血范
2楼-- · 2019-02-01 15:11

This will fix the SOAPUI issues on Windows 10 with high resolution screen 3840 X 2160.

1) Goto installation directory of SOAP UI C:\Program Files\SmartBear\SoapUI-5.4.0\bin

2) Right click on SoapUI-5.4.0.exe and click on compatibility tab

3) Tick mark yes on checkbox: Override high DPI scaling behavior. Scaling performed by:

4) Select System from dropdown

5)Click apply on it.

Screenshot of SOAP UI Compatibility mode

查看更多
贪生不怕死
3楼-- · 2019-02-01 14:44
看我几分像从前
4楼-- · 2019-02-01 14:48

You also can use this command to create registry key:

reg add HKLM\Software\Microsoft\Windows\CurrentVersion\SideBySide /v PreferExternalManifest /d 1 /t REG_DWORD

Source

查看更多
啃猪蹄的小仙女
5楼-- · 2019-02-01 14:51

Java 9 does support Hi DPI

  1. Download and install Java 9 Early Access

  2. Edit "C:\Program Files\SoapUI\bin\soapui.bat" and add the line at the beginning :

    set JAVA_HOME="C:\Program Files\Java\jre-9"

  3. In file "C:\Program Files\SoapUI\bin\soapui.bat", add at the beginning of the line the option "--permit-illegal-access" :

    set JAVA_OPTS= --permit-illegal-access -Xms128m -Xmx1024m

  4. Rename C:\Program Files\SoapUI\jre into C:\Program Files\SoapUI\jre.disabled

  5. Start "soapui.bat"

Hint : use the fixed-size font "Consolas" in "Editor Settings"

Note : tested with Windows 10 "Creators Update" (build 1703)

Screenshot of SOAP-UI in Hi DPI

查看更多
仙女界的扛把子
6楼-- · 2019-02-01 15:08

This is the workaround until the developers get round to making a version that is DPI-Aware.

Step 1: Add a registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\PreferExternalManifest (DWORD) to 1

Step 2: Add a manifest file 'SoapUI-5.2.1.exe.manifest' in the same directory as 'SoapUI-5.2.1.exe'

Content of manifest file:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
    <description>eclipse</description>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3"
                    level="asInvoker" ms_asmv3:uiAccess="false">
                </requestedExecutionLevel>
            </requestedPrivileges>
        </security>
    </trustInfo>
    <asmv3:application>
        <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
            <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
        </asmv3:windowsSettings>
    </asmv3:application>
</assembly>


Correct DPI scaling: corect

查看更多
登录 后发表回答