09-04-2015 06:46 AM
I have a client that is curremtly testing a device that has an built in webserver. He now wants to automate this process so has anyone done anything like this before?
For example:
Thanks in advance.
Kevin
09-07-2015 06:49 AM
Hello Kevin,
What is the device you/your client are/is using? What do you mean by "built in webserver" - have a website running on the device?
Best regards,
Bozhidar
09-07-2015 08:02 AM
Hi Bozhidar,
The device is an item they are manuafacturing and has a web interface very much like a router or modern printer. E.g. point your browser at 192.168.1.50 and a web page allows you to configure the device.
Kevin
09-09-2015 09:10 AM
Hi Kevin,
What is it that you want to automate, I am not particularly clear on what it is you are looking for help with? Is it the testing of the device over the web server using LabWindows, would you be able to provide a bit more information?
Warm regards,
Luke
09-10-2015 02:30 AM
Hi Luke,
Currently an operator has to click on a few buttons on the web page and also enter some text (set serial number, configure settings etc). The client wants to automate this process. The only way I can see to do this via the current web interface is to send keys to it.
Kevin
09-11-2015 04:49 AM
Hi Kevin,
So just to clarify, you are writing a program on Labwindows/CVI that you would like to automate the process of pressing some buttons and inputting some characters over a web server?
Regards,
Luke
09-11-2015 07:31 AM
Hi Like,
Yep that's it.
Kevin
09-14-2015 10:19 AM - edited 09-14-2015 10:19 AM
Hi Kevin,
As you want to automate the testing of a piece of kit I would initially think that you would need to have a certain sequence that you would like to complete, i.e. known button presses and string inputs, and then send these in a predefined sequence over using the web server. If you are familiar with Teststand that may be useful for you.
We have a few guidelines:
Automated_<Library>.prj (e.g., Automated_NetworkStreams.prj)Automated_<Library>_debug32.exe, Automated_<Library>_release32.exe, Automated_<Library>_debug64.exe and Automated_<Library>_release64.exeI would suggest researching automated testing and then adapt that to work over a network.
Luke
09-16-2015 01:36 PM
Hi Luke,
Thanks but I don't need any guidance on automated test, what I want to do is to interact with a web page either through a browser such as Chrome or directly via HTML from already written CVI automated test code.
Kevin
09-18-2015 04:20 AM
Hi Kevin,
The first thing you should do is inspecting HTML code of the webserver. You can save HTML page on your local drive (or use F12 key in internet explorer to launch the debugger) and inspect HTML source to check actions associated to each buttons and text fields you are interested in.
Generally, each action corresponds to HTTP POST or GET requests that can be can be emulated using Labwindows TCP library client functions. Of course, depending on the complexity of the webserver, this task could be more or less painful.
Regards,
Stéphane