Forum Discussion

TestNZ's avatar
TestNZ
Occasional Contributor
14 years ago

How to run this in layman's terms tcAgPatcher.exe [/silent] [/noBackup] xapfile?

Can someone please tell me in laymans terms, how I run the command

tcAgPatcher.exe [/silent] [/noBackup] xapfile



Step by step please?



ie, do I open command prompt?

do I need to find the xap file somewhere?





Am absolutely confused, as to how Im suppose to run this so I can start testing using Silverlight.



Cheers :o)

2 Replies

  • irina_lukina's avatar
    irina_lukina
    Super Contributor

    Hi Shane,


    1. Click Start and select the Run item from the ensuing pop-up menu.

    2. Enter cmd in the Open field to open the Command Line window.

    3. Enter the following text in the Command Line window:



    cd C:\Program Files\Automated QA\TestComplete 8\Open Apps\Silverlight\



    You can enter it manually, or copy it from my post, right-click within the Command Line window and select Paste from the ensuing context menu. After that, press Enter.

    4. Switch to some file manager and find the .xap file that corresponds to the Silverlight application you are going to test. Copy its fully-qualified file name (for example, C:\MyApplications\Silverlight\AppForTestComplete.xap).

    5. Enter one of the following variants in the Command line window:

    tcAgPatcher.exe "C:\MyApplications\Silverlight\AppForTestComplete.xap"

    In this case, the tcAgPatcher utility will create a backup copy of your .xap file (it will have the same name, but with the .bak extension) and will replace the specified .xap file with the new one. The new file has been prepared and you can use it for testing. Also note, that if you use this approach, TestComplete will show all the error and warning messages that will occur when processing the specified application (if any).

    tcAgPatcher /silent "C:\MyApplications\Silverlight\AppForTestComplete.xap"

    In this case, TestComplete will create a backup copy of the file (as it was described) and will replace the specified .xap file with the new one, but it won't display any error or warning messages when processing a Silverlight application.

    tcAgPatcher /noBackup "C:\MyApplications\Silverlight\AppForTestComplete.xap"

    In this case, TestComplete won't create a backup copy of your file and will replace it with the new file (that  you can use for testing). Also, TestComplete will show all the error and warning messages that will occur when processing the specified application (if any).

    tcAgPatcher /silent /noBackup "C:\MyApplications\Silverlight\AppForTestComplete.xap"

    In this case, TestComplete will neither create a backup copy of your file, nor show all the error and warning messages that will occur when processing the specified application (if any). It will just process the specified file and will replace it with a new one that you can use for testing.


    I hope, this information helps :)