Unable to interrogate ClickOnce application

Hi,

I am trying to interrogate a ClickOnce application that is being started by an application manifest file (.application)

I have tried the following:

  • Using Windows Adapter:

    • Path: C:\Windows\explorer.exe
    • Argument: Full file path to the .application file
    • HookChildProcess: True
    • StartMethod: StartAndWait
    • StartTimeout: 100000
    • TargetPath: Process name of applicatio
    • Error Message: “…failed to start within the given timeframe”
    • No interrogation form showed, but application started.
  • Using Windows Adapter

    • Path: C:\ProgramFiles\Internet\iexplorer.exe
    • Argument: Web Service URL of Click Once app
    • HookChildProcess: True
    • StartMethod: StartAndWait
    • StartTimeout: 100000
    • TargetPath: Process name of applicatio
    • Error Message on IE: The webpage cannot be found.
    • Interrogation form showed, but application did not start
  • Using Web Adapter

    • StartPage: Web Service URL of Click Once app
    • HookChildProcess: True
    • StartTimeout: 100000
    • Error Message on IE: The webpage cannot be found.
    • Interrogation form showed, but application did not start

I am always killing the ClickOnce background task (dfsvc.exe) on Task Manager before starting the interrogation.

Can you kindly point out what I am doing wrong?

I have referenced the following:

https://collaborate.pega.com/question/pega-robotics-studio-openspan-unable-interrogate-clickonce-application

https://collaborate.pega.com/question/pega-robotics-unable-interrogate-clickonce-app

Thank you.

Regards,

May

@MayAnnTenorio I would start by testing that you have the right target application by using MonitorAll as the StartMethod and setting the Path equal to the application you are interested in. Click Start Interrogation and then manually launch the application. If you are able to interrogate it, then there must be something missing from your earlier tests.

You can also use a tool like Process Explorer to identify the exe to make sure you have the right one. If possible, take a screenshot of the process in Process Explorer and attach here and I can see if there is anything obvious you might be missing since it looks like you’ve been pretty thorough.

@ThomasSasnett Hi Thomas,

Thank you for the advise. After I set the Start Method to MonitorAll, I am not able to detect the controls on the Interrogation form for all options.

@MayAnnTenorio Are you able to download and Run Process Explorer? A screenshot of the information there might be helpful. Specifically the properties of the application as well as the hierarchy of it.

@ThomasSasnett Hi Thomas,

Here is the screenshot:

Hi @ThomasSasnett,

Thank you for the advice. I was able to interrogate the application using your recommendations.

I have performed the following:

  1. Kill any instances of ClickOnce background task (dfsvc.exe)

  2. Click the application manifest file. This will open the Click Once Application.

  3. Start the interrogation.

These are the windows adapter settings:

Path: .exe path of the application

TargetPath: Process name of the application

StartMethod: MonitorAll

Regards,

May

@MayAnnTenorio Would you right-click on that process and select Properties and attach that? You may blur out anything proprietary. I am most interested in the command line.

Also, would you confirm that when you attempted using MonitorAll, that the Path property was set to “RiskkOnePortfolio.exe”? Was the application not running when you started interrogation? If not, please make these changes and then let me know. To clarify;

  1. The Path should be set to RiskkOnePortfolio.exe
  2. The application should not be running when you start interrogation. After you start interrogation, you should launch the application.