This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Why Silktest - Base State execution opens the Windows Default apps Configuration

Since I changed to the 21.0.2 SilkTest version every time I execute the Base State in a test, it opens the Windows Configuration Default Apps window

How can I solve this?

Thank You

  • 0  

    Hi  

    The behaviour sounds odd, what Silk Test client are you using (Classic/Workbench/Silk4J/Silk4NET)?

    What application configurations are associated with your test/project?

    If you create a new test/project and add an application configuration for Notepad only, do you observe the same problem?

    Regards
    Robert

  • 0 in reply to   

    Thanks Robert

    I must correct, my colleagues have not changed to version 21.0.2, they continue with version 21.0.1 and the same behavior is shown.

    We use SILK4J

    It happens to us with Web applications with Tests that we already run daily and that did not happen.  This happens from this week

    With a new project for Notepad we do not observe the same behavior, it works correctly

     

  • 0   in reply to 

    Hi  

    Given that the Notepad test worked correctly, I can only think that the BaseState is attempting to open a file that has no default application associated with it, which is causing the "Windows Default Apps" window to open.

    Can you attach your silk4j.settings file or post the contents?

    I'm specifically interested in the "<applicationConfiguration>...</applicationConfiguration>" section.

    Regards.
    Robert

  • 0 in reply to   

    Hi RobertM

    These are two of them:

    uftdeveloper.settings

    <?xml version="1.0" encoding="UTF-8"?>
    <recorderProject version="21.0">
    <applicationConfiguration>
    <browserType>GoogleChrome</browserType>
    <baseStateInfo>
    <locator>//BrowserApplication</locator>
    <url>interqa.gnp.com.mx/.../url>
    </baseStateInfo>
    </applicationConfiguration>
    <agentOptions>
    <entry>
    <string>OPT_ASSET_NAMESPACE</string>
    <string>NegocioProtegidoOsmar</string>
    </entry>
    <entry>
    <string>OPT_SHOW_PLAYBACK_STATUS_DIALOG</string>
    <null/>
    </entry>
    <entry>
    <string>OPT_XBROWSER_SYNC_MODE</string>
    <int>1</int>
    </entry>
    </agentOptions>
    </recorderProject>

    /////////////////////////////////////////////////////////////////

    silk4j.settings

    <?xml version="1.0" encoding="UTF-8"?>
    <recorderProject version="21.0">
    <applicationConfiguration>
    <browserType>GoogleChrome</browserType>
    <baseStateInfo>
    <locator>//BrowserApplication</locator>
    <url>eotuat.gnp.com.mx/.../url>
    </baseStateInfo>
    </applicationConfiguration>
    <agentOptions>
    <entry>
    <string>OPT_ASSET_NAMESPACE</string>
    <string>CotizacionAutos</string>
    </entry>
    <entry>
    <string>OPT_PLAYBACK_STATUS_DIALOG_SCREENSHOTS</string>
    <boolean>true</boolean>
    </entry>
    <entry>
    <string>OPT_SHOW_PLAYBACK_STATUS_DIALOG</string>
    <null/>
    </entry>
    <entry>
    <string>OPT_TRUELOG_FORMAT</string>
    <int>1</int>
    </entry>
    <entry>
    <string>OPT_XBROWSER_SYNC_MODE</string>
    <int>1</int>
    </entry>
    </agentOptions>
    </recorderProject>

    As I mentioned before, we've used these scripts before and haven't had that behavior.

    Thank You

    Fernando

  • 0   in reply to 

    Hi  

    The URL section does not appear to be correct, however this may because you removed the full web application URL. Is this correct?

    If so, can you execute the following and let me know if you observe the Default Apps window appearing?

    	@Test
    	public void invokeBrowser() {
    	    Desktop desktop = new Desktop();
    		BrowserBaseState bState = new BrowserBaseState(BrowserType.GoogleChrome, "about:blank");
    		bState.execute(desktop);
    		
    		System.out.println(desktop.exists("//BrowserApplication"));
    		
    		desktop.<BrowserApplication>find("//BrowserApplication").close();
    	}

    Can you also confirm that you have a default Web Browser defined in the Default Apps window?

    Regards
    Robert

  • 0 in reply to   

    Hi RobertM

    Sorry, at the time of copying and pasting that part of the URL was removed:

    <applicationConfiguration>
    <browserType>GoogleChrome</browserType>
    <baseStateInfo>
    <locator>//BrowserApplication</locator>
    <url>interqa.gnp.com.mx/.../url>
    </baseStateInfo>
    </applicationConfiguration>

    - I ran the code and the Default Apps window appears

    - and yes I have defined the web browser by default

    Regards