A
A
AlexCheck2015-09-20 18:49:06
Lua
AlexCheck, 2015-09-20 18:49:06

Running an executable from a web page?

Good evening everyone!
There is a set of test scripts written in LUA. Each script is a minimal application test.
We make a test plan, which consists of 10 test scripts. A test plan is essentially a file in which we call test scripts one by one. Further, this file is passed as a parameter to our application.
The idea of ​​forming a test plan and launching it is done from a web page.
Please help me choose an instrument. Maybe someone knows interesting framework?
Any information on this topic would be of interest to me.
Now I'm carefully studying node,js.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Taratin, 2015-09-20
@AlexCheck

Since OS is not specified, I will assume that Windows.
If the application registers itself in environment variables.
Then on the page you can create a text bat file with the content

mysuperapp.exe script1.lua
mysuperapp.exe script2.lua
...
mysuperapp.exe script10.lua

And upload to the user via https://github.com/eligrey/FileSaver.js/
When you open the downloaded file, the scripts will run.

A
AlexCheck, 2015-09-20
@AlexCheck

Alexander Taratin @Taraflex
Thank you, I did not specify the OS, since it does not matter at the moment.
Now everything is under Windows and I’m just launching baniki))). Your suggestion, I'll definitely check it out.
Ideally, I want to implement everything under linux.
I imagine it like this:
I write the scripts with my hands and put them in the working directory.
Next, the web application analyzes the working folder and generates a web tablet. The name of the script, and perhaps some other information, some description of the test. Next, I check the boxes next to the tests and thus form a test plan. I press the button to start the test and the binary file is launched for input, which is fed the generated list of tests.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question