Forum Discussion

vantaku01's avatar
vantaku01
Occasional Contributor
2 days ago

Unable to open the application through test complete.

Hallo everyone, I am trying to open one of my tested application. when I am opening the application normally, it's running properly. But when I am opening the same application through testcomplte, it's throwing some error and not able to open.

Error message

A problem with file version Occured, The application will be closed for safety reasons.

Does anyone faced the similar or same issue. is there any special settings do we need to insert.

Thank you all in advance.

 

Br,

Ramesh

  • rraghvani's avatar
    rraghvani
    Champion Level 3

    How are you opening your application? Can you provide screenshots please?

  • Hello,

    How do you open the application normally?

    I assume by using Windows Start > Shortcut, from that shortcut, right click to open file location, and on the shortcut file right click to view properties. That would give you the application "Target" and "Start In" values.

    Compare such details with TestComplete configured application.

  • When I do a google search on the error message I get that this "(The application will be closed for safety reasons) usually indicates that the application is trying to access a file that is incompatible with its current version, potentially causing instability or security risks, leading to the program shutting down to prevent further issues". 

    I know this might be an annoying answer, but are you sure you are opening the application being tested in the same way when manually opening versus opening via TestComplete? A software (app) is not usually classified as a file (like you show in the error message you got). It is as if the software under testing was given an argument to open a particular file and the file was not compatible with that version of the software (whatever software it is that you are testing). When opening via TC, are you sure you are only opening that software and nothing else or does the test open the software and attempt to open a file in the software ... a file that is no longer compatible with the version of software being tested?

    Another thing I would suggest is try running the test with both x64 TestComplete and x86 TestComplete. More than likely this is not the issue but it helps to eliminate this as the source of the error message. 

    x86: C:\Program Files (x86)\SmartBear\TestComplete 15\Bin
    x64: C:\Program Files (x86)\SmartBear\TestComplete 15\x64\Bin

    It might also be a good test to try running TestComplete as administrator if you haven't already. Here are some other troubleshooting tips from the search: 

    =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    Possible reasons for this error:

    Outdated file format:
    You might be trying to open a file created with a newer version of the software than what you currently have installed. 
    Corrupted file:
    The file itself could be damaged or corrupted, preventing the application from reading it properly. 
    File permission issues:
    You might not have the necessary permissions to access the file. 
    Software compatibility issues:
    Sometimes, updates or conflicts with other programs can cause file version incompatibility. 

    How to troubleshoot:

    Update the application: 
    Check for available updates to your software and install them. 
    Check file format:
    Ensure the file format is compatible with your current application version. 
    Repair the file:
    If possible, use the application's built-in repair function to try to fix the file corruption. 
    Save as a different format:
    Try saving the file in a compatible format that your application version can read. 
    Check file permissions:
    Verify that you have the necessary permissions to access the file. 
    Reinstall the application:
    If the issue persists, consider uninstalling and reinstalling the application.