开发者

Auto pilot mode of application [closed]

开发者 https://www.devze.com 2023-02-18 02:42 出处:网络
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improv开发者_高级运维e this question? Update the question so it focuses on one problem only b
Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improv开发者_高级运维e this question? Update the question so it focuses on one problem only by editing this post.

Closed 8 years ago.

Improve this question

Hey Guys I am working on Gateway Simulator. here gateway simulator is connected with the camera.gateway respond when user sends command. command can be like streaming video or status of the sensor associated battery information etc.There is data center also which will forward the user request to gateway.

There some information which gateway also send to the user or data center with out any request from the user or data center.like battery status down,sensor remove etc etc.

Since this simulator will be used by the developer/QA team to simulate the gateway.they want it it to run in auto pilot mode/pre-scripted instructions mode as well.

I wanted some input from you guys o this.I wanted to know some the widely used approach to address this issue. any link/suggestion would be fine.This gateway simulator needs to be written ic++ for both linux and windows paltform.


It depends on how (network, console, GUI, ...) the user is sending commands. If it's network or console, writing a script that will feed the command should not be too hard in any language, but there is a tool called expect, built on top of tcl, that's specifically designed for this task. Alternatively if you know perl or python and don't want to learn tcl, you can use the perl Expect module or python pexpect package (windows version).

If the commands are given through a GUI, there is some tooling to automate even that in LDTP. It should work with Gtk+ GUI and I am not sure how far it is with Qt (or whether KDE has something similar).

0

精彩评论

暂无评论...
验证码 换一张
取 消