Can One Run Selenium Tests on Debian Virtual Machine? - django

I'm trying to wrap my head around this and figure out if it's possible. I've been doing Django development on a Mac running OS X 10.10. My production machine is a Debian server running on AWS. Recently, I decide to move my development to a Debian virtual machine built with Vagrant that runs on my Mac because I'm tired of having to maintain two different runtime environments. The problem is that I have a number of Selenium functional tests that I've been running on my Mac that I'd like to keep using. Is it possible to install Firefox and Selenium on the Debian VM and run my tests on that box and see them running in the browser as I do now on my Mac? Also, would it be possible to run them on my AWS production server? It seems to me that these tests won't run once I start running things outside of my current OS X environment.
Thanks.

Works great for me, for years. Same, much better when running the same OS. I use Ubuntu on VMWare Fusion, running selenium on Chrome with Chrome driver (doesn't work with Chromium, works great with Chrome).
Just make sure you have the correct driver https://sites.google.com/a/chromium.org/chromedriver/downloads

Related

Set python workspace environment to Debian VM when on OSX in VS Code

I am experimenting with setting up Visual Studio Code as my Django IDE, however I'm having difficulty configuring my python workspace environment correctly, such that I can get intellisense for 3rd party modules (like Django) working.
My desktop is Mac OSX, but I run my actual Django environment in a Debian instance inside of virtual box, running on my Mac. I also run Debian in production. I use an NFS share my django project files and virtualenv files between Debian and OSX.
I tried following these instructions for configuring my interpreter, however if I set a custom path like:
/Users/myusername/.virtualenv/myenv/bin/python2.7
It won't work, because that's a debian binaries, not Mac OSX.
In PyCharm I believe there is a way to specify remote interpreters, even on different architectures. There's no way to do something like this in VS Code, right?
Pretty sure what I want is currently impossible. The good news is it's being worked on.
link to issue #123 RFE: Support Remote Interpreter in pythonVSCode repo

Deploying a C++ application developed on Mac OS in a Ubuntu environment

I have developed a small web server based on Crow, link.
I'm pretty new to developing in C++ so all advices are greatly appreciated.
I'm developing the application on my Mac and intend to deploy it to a Ubuntu server.
I use Make to build the application so that I can run it on the Mac. The application is depending on two libraries, pqxx and png++. None of those are installed on the server.
I'd like to know how to run this application on the Ubuntu server. Mainly I guess the issue is, can I make a specific build on the Mac that is targeted for running on the Ubuntu server? Or do I have to build the application on the server?
Easiest way is to install Ubuntu on a VM on your Mac and deploy there your application.
Less easy solution: move source files on server, deploy the application, delete the sources from server.
Theoretically, both system are linux, so as long as you are using standard c++ libraries the code should run anyway.
In any case, the dependencies on Linux and Mac for Crown are different, so (most probabily) you have to install some libraries on your server.

What is the difference between installing WampServer versus components

What are the differences between installing an Open Source package that I found called WampServer versus installing each component separately (Apache, PHP, MySQL)?
I will be installing this on a Windows 7 laptop which is for development purposes. The production machine is Linux although I've never had problems in the past just picking up my php code from a Windows machine and putting it on a linux machine.
Thanks ahead of time for the replies.
Wamp is for quick setup of a developement enviroment. Wamp is also configured on a low security level. If you have an other production system, there is no need to install all the components separately.

Selenium, automated frontend testing on different OS

My complete working environment is Linux based (Ubuntu for desktop and server). I use Hudson and Selenium to execute tests on my EE6/ZK web application with any browser available for Ubuntu.
But how would I test my application with IE (Windows) without setting up a Selenium server in Windows. Thought I could run Windows in a VMWare or Virtualbox, but still it needs a "local" selenium and how would I trigger it ? Install hudson as well and pretty much replicate the complete CI in Windows ? How is MAC ?
Any tips or experience with cross-browser-platform-OS automated testing ?
Sven
You will need to use Selenium Grid. There is a Selenium plug-ins for Hudson available, and this article has a guide how to setup Continuous Integration with Hudson and Selenium Grid. And yes, you will have to install Windows in a virtual machine.

How to automate installer testing

I'm wondering if anyone has any best practices for automating the testing of installers on various machines with potentially different hardware / software profiles and by specifying various options to the installer. The idea would be that I could write "unit test like" code to set up a machine, run the installer, then test that certain things are true. Tests might look similar to:
Test:
Boot Machine without IIS
Run Installer
Assert Installer Had Errors
Test:
Boot Machine with IIS
Run Installer
Assert Installer Ran
Test_Fixture:
SetUp:
Boot Machine with IIS
Test:
Run Installer without IIS install
Assert Website Not Installed
Test:
Run Installer with IIS install
Assert Website Installed
I know I could create lots of VMs, but waiting for a VM to boot for each functional test sounds like way more work than I want. What I really want is a way to virtualize the installer environment. Any suggestions?
We have created a set of VMs and find it is very easy to manage. We run the tests for 13 different Windows installers over night. The VMs we have created our very bare bones, so it is possible to run a number of tests in parallel.
If you have the installer runnable from the command line, it's easy to have a script to call it automatically.
Then you can use a web app testing tool to see it the install was successful, like this one http://seleniumhq.org/ For this you will need an unique way to test a new install - like a page with the current version.