Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
We use Watir with AutoIT for testing our web apps with IE on Windows. The AutoIT is used where Watir falls short in handling native Windows dialogs (like Windows File dialog for upload).
Because of AutoIT, we are not able to run our tests using task scheduler as AutoIT operations from Watir code need an Interactive Desktop session.
We have tried a few tricks (RDP from a RDP, etc.) but w/ no success and are not able to do true automation.
Any ideas? Open to replacing AutoIT if it can help us achieve true end2end testing automation.
We had similar issues when we started running our tests from our TeamCity agents that were running as a service. This is because you are trying to run an interactive process from a service which is not interactive. We switched to have our TeamCity agents run as normal processes and the problem went away.
You may want to look into a build management server to handle running this instead of just using Task Scheduler, but either way you want to avoid running the test process as a service.
You need to use a scheduler that is running with user permissions. I've previously used CruiseControl.Net to do this.
If your process doesn't have user permissions, it won't have access to desktop windows, which is what you need whether you are using Watir, AutoIT or some other tool. This is a permissions issue, not a tool issue.
I'd replace Watir. ;)
I'm not quite sure about Watir but I believe it's nothing but a wrapper for InternetExplorer.Application COM object, which you can easily use straight from AutoIt with all its functionaly, through ObjCreate("InternetExplorer.Application"), or through user defined functions listed in IE Management section.
I do believe you could script all your testing scenarios only in AutoIt. Why do you need an interactive desktop session?
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I want to build a gadget with PC-boards like raspberry and Linux(or Windows) OS. And when user turns on the gadget sees my company name, and directly goes to my program and couldn't exit from that.something like ATM machines.
How can I do that?
What is this topic name and where can I find sources and guides?
You can hard-code your user-space process to run after bootup by updating the init script. You can run it as a daemon process and block all signals to it by the user. You can further disable other services and application processes like login process if you want the application to be accessed by everyone.
Link: Creating a Kiosk with Linux
On Linux, you just configure the system to run your specialized program. This can be as simple as configuring (e.g. in some /etc/rc.local or /etc/rc.2/ ...) (or even replacing or enhancing) the init program, or configuring the startup of the X11 server.
There are also several "kiosk oriented" Linux distributions. Details about configuration of the init process may be distribution specific. And systemd is now often a replacement of init and is configured specifically.
So you need first to choose some Linux distribution then dive into its documentation.
BTW, crontab(5) knows about #reboot so can be a way to customize the startup procedure
You first should learn more about Linux programming and its system administration (which is distribution specific). If you don't know Linux, I strongly suggest you to install Linux on your laptop and become familiar with it.
Maybe you should look into raspbian
Have a look at the current issue (#93) of the fullcircle magazine (as pdf or epub available). It contains an article about how to install a kiosk mode for ubuntu. It should be easily adoptable to your usecase (replace your app with firefox as mentioned in the article).
Disclaimer: I'm the founder of the opensource Webconverger Web kiosk project.
Debian based Webconverger uses the inittab to manage services. I highly recommend you work from the opensource Webconverger project and do not roll you own kiosk.
The new version of Webconverger for Rpi2 and PCs will be using systemd exclusively.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I need to make use of Firefox for web scraping. I am using WWW::Mechanize::Firefox. So I will need to install Firefox and Mozrepl however I am installing on a vps that does not have a GUI desktop environment and I am running into problems that Firefox requires a GUI/graphics driver.
The perl script will be run with a cronjob.
How can I do this?
From the documentation (WWW::Mechanize::Firefox::FAQ):
Do I Need An X Session To Run Firefox?
Yes.
If you run a unixish operating system, like OSX or Ubuntu or some
other Linux distribution, then Firefox will connect to your X server
and display a window there. If you do not want Firefox to actually
display on your monitor, many people have had success by running
Firefox on another X server separate from the main X server, like
Xvfb.
Personally, I would prefer to have a "headless Firefox" that does not
need a windowing environment. So far, I am unaware of this actually
existing.
So yes, you need to have an X session available.
Enable XForwarding, with ssh, so you can view the remote GUI desktop on your local machine. Then install Firefox via package management, then install MozRepel within Firefox. Once this is done ensure the MozRepel plugin is enabeled. Then use cpan to install the rest:
cpan WWW::Mechanize::Firefox
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
So, I got a new job and it requires a lot of VM management and editing php files on these VM's.
Anyway we use putty to log into the VM's and just linux commands to edit the files.
I figure there has to be an easier way out there. Not that I can't handle linux commands, but editing documents becomes much more cumbersome this way.
I heard there is a way to do this through eclipse, but I don't know it.
I do not ever have the php files on my computer, so wamp wouldn't work to my knowledge.
thanks in advance for the help.
A good alternative would be to use Sublime's SFTP plugin to edit the files directly.. This is a great way to manage your code.
Download Sublime Text:
http://sublimetext.com/
Install Package Control:
https://sublime.wbond.net/
Install SFTP:
http://wbond.net/sublime_packages/sftp/installation
Then you can browse the server remotely by setting up a Remote, and syncing that with a local folder.
You can use RSE (Remote Systems Explorer) plugin in Eclipse.
You can simply create local git repository and then clone it on a remote system. This way you can work with your files locally (even when the network is down or you are on the beach) and push the changes as needed. Eclipse has a decent Git UI. You also get to keep complete change history!
If the server your working on has graphical programs installed, like gedit, you can install Xming on your local computer, then set up Putty for X11 forwarding. That way from the remote terminal you can just run:
gedit myfile.php
and the file will appear in a graphical editor on your local machine. Another option would be to use WinSCP to download the files to your computer and edit them locally with your favorite editor then re-upload them to the server.
For editing files on your VM from your desktop, you might want to use an editor for your desktop that lets you save via sFTP to the VM, like Notepad++ or UltraEdit. Both of these are feature-rich GUI driven editors, with features for programmers like keyword highlighting, syntax checking, etc., that you can run on your desktop and open/save files directly from/to a remote host.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
does anybody know, if there is a desktop environment for linux-distros, that is completely based on terminals, but still is able to let the commands create windows (e.g. a browser, an email-program, multimedia, ...)?
Background is, that i want to use my old laptop again - but he is pretty slow and every little performance-saver would help a lot. Also i don't need much besides the terminal, email und a browser.
My research only brought up solutions, where the basic desktop-environment still runs in the background and though still uses system capacity.
Thanks in advance
I read about fvwm2. I also used it ( though it needs Xorg if I remember correctly ). Very minimalistic.
http://www.fvwm.org/
You must choose if you want a pure terminal (No X Server) and use apps like mutt for email and w3m for websurfing, or if you want a light desktop environment like openbox, i3wm, awesome...
You should look at MiniLinux distros, like DSL, or SliTaz
I have an old laptop which runs smoothly with SliTaz, but try and find which is best for you.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
So i know how to SSH into a box and create/modify directories etc. However I do want to know how I can open the exact GUI (For instance I want the Fedora environment that I have on my virtual machine) to open up. Meaning I need to be able to simply see my linux environment. Would anyone know how I can achieve this?
I am using a mac.
I'm presuming you want to see the gui you are running on the vm, which won't really help you here. You have a couple of options:
If you are running linux (or an X server like xceed) on the machine you are actually using, then you can enable X forwarding in ssh (-X on the command line) and then run your window manager from there.
Alternatively, you could look at installing a vnc server on your linux machine (I'd recommend tightvnc) and your host and connecting that way.
Either way this would be getting you a fresh desktop rather than what is visible on the console of the machine.
For the specific case of a virtual machine, as you mentioned, both vmware and virtualbox (I'm guessing you are using one of those) provide either vnc or rdesktop head support; you can then use either a vnc client or windows remote desktop client to connect to the actual console. In this instance this is probably what you want to do.
Set up a VNC server on your Linux machine, it can provide you with a desktop environment.