Ask a Question

.exe file run in test execute

SOLVED
sathashiv5
Contributor

.exe file run in test execute

Hi,

 

 

Is it possible to convert the project suite(with project scripts, keywords) into binary executable? And run in Test Execute Tool.

Since, Test execute support file format -> .pjs and .mds. Does the Extensions(has installed with .net framework) will run .exe file? 

(Note: Test Execute providing .Net Framework->so, Can we run .exe file)

1 ACCEPTED SOLUTION

Accepted Solutions
Lee_M
Community Hero

Re: .exe file run in test execute

Another issue to consider could be the type of test and the visualizer images that are created (KW tests)

 

ref: https://support.smartbear.com/testcomplete/docs/testing-with/visualizer/index.html

When to use Test Visualizer

  • Use Test Visualizer for debugging purposes and while searching for errors. Images and data that Test Visualizer collects help you understand what your recorded test does, or what has happened in your tested application during the test run.

    Keep in mind that collecting the data may reduce the test performance. In addition, the collected data occupies the hard disk space.

  • Disable Visualizer or limit its functionality when your tests run smoothly. It will save disk space and makes the tests run a bit faster.

    Note that disabling Visualizer makes it difficult to understand what goes wrong in case of an error.

-------------

 

https://support.smartbear.com/testcomplete/docs/testing-with/visualizer/enabling-and-disabling.html

"Test Visualizer data, especially screenshots of the whole desktop, can take a lot of disk space. To save disk space, you can limit the amount of saved data or disable the Visualizer. This will also speed up test recording and playback."

 

 

 

don't forget to 'prune' you tests and Delete All Visualiser frames (bottom button) after this action, not sure if this is done automatically

 

 

or Convert to Keyword tests - but with this approach, you will lose the option to be able to get the visualizer images back as you are unable to convert script tests back to KW tests

View solution in original post

14 REPLIES 14
Lee_M
Community Hero

Re: .exe file run in test execute

@sathashiv5 I don't believe there is such a feature

I did create a simple user-friendly solution that accomplished similar results.

 

The only condition is that it needs to be run from a computer running TestComplete or TestExecute (Lite).

 

I created a UserForm with buttons, each button startes a test (like a program GUI)

 

The UserForm has to call functions from a SCRIPT (not KW)

A button on the GUI calls a function from a script that in turn calls a project from either a script or KW test - parameters can even be passed, they are just text boxes from the GUI)

 

The UserForm could then be placed in the Execution Plan as the only item, running the project now invokes this GUI

 

EXTRA: EventHandler onStopTest would then reinitialize the 'dashboard app'

sathashiv5
Contributor

Re: .exe file run in test execute

Does licensed software has this feature -> converting .pjs / .mds into .exe ?

Is the batch file the only option? 

Does userform fits in my case? 

Does Test Execute supports .exe file for execution?

 

sathashiv5
Contributor

Re: .exe file run in test execute

Hi Lee_M,

 

Thanks for the support. I would like to convert the project files into single executable(should able to run in Test Execute) in order to reduce the size of the project which grows with incremental scripts. Is there a specific document for file extensions, does TC and TE supports? 

sathashiv5
Contributor

Re: .exe file run in test execute

And, any extensions or third-party tools support this feature. 

AlexKaras
Community Hero

Re: .exe file run in test execute

Hi,

 

Is it possible to convert the project suite(with project scripts, keywords) into binary executable?

No, this is not possible. Point.

TestComplete or TestExecute are required to be installed on the box where test code must be executed.

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
sathashiv5
Contributor

Re: .exe file run in test execute

Hi,

I want to convert the project file into a single executable, so I can pass this .exe file into Test Execute Tool for executing test code(Client requirements). If possible, how to reduce the project size? Our Scripts within the Test Code will be added incrementally, so the project size may become a huge memory usage. That's why, we looking to convert into small sized file and if we pass this to our client, they can easily run as well. (If any other suggestions like extension need to be installed for this purpose, please mention the guide to make it). 

AlexKaras
Community Hero

Re: .exe file run in test execute

Hi,

 

As it was said more than once, it is not possible to convert TestComplete's test project to any sort of self-executable file. TestExecute requires test project in exactly the same form as TestComplete.

Why did you decide that TestExecute can use or require project in the form of executable file?

 

Regards,
  /Alex [Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
================================
Lee_M
Community Hero

Re: .exe file run in test execute

@sathashiv5,

 

I don't believe you can produce a binary like you are looking for - @AlexKaras please confirm this.

Feel free to suggest it for a future TestComplete feature.

 

It sounds like your projects are getting larger and that a CI solution may be what you are looking for.

 

You may want to investigate Jenkins, this has a TestComplete extension - I am using this approach - but this doesn't address your filesize issue.

I have a separate server that everyone can RDP into, the server houses a Jenkins installation and maintains the tests from a BitBucket (GIT) repository running a TestExecute instance.

People can then add tests that can be scheduled or manually run (advanced solution to the hack of the UserForm that what was suggested previously)

 

Have you found out where the file size is taken up, most of my space was taken up with logs, maybe this can help - managing log files

sathashiv5
Contributor

Re: .exe file run in test execute

Hi @Lee_M ,

 

Thank you for the update. If we know how to reduce the project size(apart from logs), and the extensions supported by Test Execute, then it will be very useful for us.  

cancel
Showing results for 
Search instead for 
Did you mean: