I am using PhantomJS on Windows and would like to know if it is possible to install this program on Qnap ts-231?
Someone has already done? Thank you
You can use the QNAP app: "container-station" (=Docker) to install "phantomJS" on your TS-231.
As already has been suggested you can use the QNAP container-station app.
The container station is a lightweight tool that will allow you to use Docker to spin up instances of lightweight Linux Operation Systems and other App virtualizations. Have a good read of of the container-station documentation for a better understanding.
To install an instance of phantomJS via the container-station app, just open up the container-station application by clicking on the icon on the main dashboard.
Once Container Station has opened up you will be opened up to the Container Station Overview page. On the left hand side you will have a menu.
From this menu select the <create> option.
In the main search box at the top of the new window enter phantomJS
If any dockerized applications are found the results will appear here. All you need to do is look for an instance that suits your needs and click on the <install> on the right hand side for the instance that you want.
Once you click on <install> you will need to choice the version that you want, I'd suggest just choosing the latest.
You will then need to fill in the Create Container window. You can allocate the max CPU and max Memory here, and if you want to the volumes paths to local folders instead of folders within the container this can be done here as well. Once you have filled everything in that you want to fill in, you can click <Create> and this will start downloading and installing your new Container for PhantomJS.
This is pretty much the same for almost every other Docker app that can be installed via the Container-Station app.
Please note that you may have additional setup for the application you are installing.
You can install a Docker Container through Container Station or a VM through Virtualization Station with phantomJS.
I've installed a VM with firefox, geckodriver and PhantomJS to develop some scrappers in Python.
Related
I have a Mainframe/HOST Application to automate using Tosca 11.0, I am unable to scan/steer elements in mainframe screen.
Solution found in Tricentis Support -
The Tosca Host Engine is installed by default as part of a complete Tricentis Tosca installation.
All information regarding software versions and hardware requirements for the engine can be found in the "System Requirements for Tricentis Tosca".
The file PCSHLL32.DLL needs to exist in the system and the operating system needs to know the path to this file (with the system variable PATH).
The 3270 terminal emulation needs to be initialized correctly, so that the connection to the HOST system to be tested can be established. Additional information is available from your system administrator.
I couldn't locate PCSHLL32.DLL in my PC.
Has anyone faced same issue? can someone help where to get PCSHLL32.DLL and get HOST engine working.
I had this problem for a while. I kept trying to figure out how to install the Host module because I couldn't find that PCSHLL32.DLL on my system...
Turns out HOST was already there... I just had to get Tosca Commander configured to find my terminal app (I'm using QWS3720 from Jolly Giant).
Try this - Go into Tosca Settings, and go to Settings > Special Engines > HostEngine> Emulation Environment and check the following settings:
1) Emulation Title: this should be the window title of your terminal emulator. * works as a wildcard. Since QWS3270 changes it's window name to match it's session, we just use * in this field.
2) Emulation Type: try to find your terminal emulator's maker listed here... Mine is set to Jolly Giant.
3) Session ID: this is the important one. This is the HLLAPI ID of the term window, basically the handle that automation needs to know to "see into" the terminal window. it seems to typically be set to "A" (same as with QuickTest Pro/UFT).
Once these settings are correct, then TRY to scan your terminal window. Launch your terminal emulator first, CONNECT with it (to start up the HLLAPI), then run Tosca's scanner - just don't expect it to scan like web pages, it will use the older scanner. Select Scan Application > Other... and it will start the older "Tosca Wizard". Click Scan, then point to your Terminal emulator. If you see the little box showing "Recognized Wizard >HOSTEngine
Good Luck!
I have the following Dockerfile which will build a Selenium server
FROM selenium/standalone-firefox:3.4.0-chromium
FROM selenium/standalone-chrome
USER root
ENV NODE_ENV test
RUN mkdir -p /usr/local/cdt-tests/csv-data
COPY ./csv-data /usr/local/cdt-tests/csv-data
USER seluser
obviously the two FROM statements is incorrect => How can I create a Selenium server container that has both a Chrome driver and Firefox driver for Selenium. As far as I can tell, the selenium/standalone-firefox:3.4.0-chromium image only works for Firefox.
There is no inheritance type setup for Dockerfiles like you are suggesting.
To implement a combined build you would need find the common FROM ancestor of the standalone-firefox and standalone-chrome, which is selenium/node-base and create your own Docker file to reapply all the build steps that selenium/standalone-chrome applies. Then keep it in sync whenever Selenium update their builds.
Dockerfile Hierarchy:
selenium/node-base
/ \
selenium/node-chrome selenium/node-firefox
| |
selenium/standalone-chrome selenium/standalone-firefox
The problem is these builds have been designed to be seperate, so there is significant overlap in the variables and settings that the images use that you would also need to unpick in your custom build to control and run both chrome and firefox at the same time. You will probably end up having to do everything from scratch.
Selenium Grid
Running individual Selenium grid node's behind a grid hub is the standard way to do multi browser testing from a single endpoint. You can run Firefox, Chrome or Phantom JS nodes in Docker or connect standard nodes from anywhere else.
Poor mans grid
You can always run a container for Chrome and Firefox on seperate ports and point the same test suite at a different port if setting up a Grid is a lot of work for the simple case of running some tests against each browser.
You cannot merge two docker files likes that. You can use one as a base for your docker file, then copy the important bits from the other into your one.
However you shouldn't really need to. There are images out there with multiple browsers and drivers included. Or better, you could set up a grid with the hub image and some driver images.
You might even consider a library such as Serenity or a product such as Katalon, both of which do it all for you. There is even a Katalon docker image designed for use in CI: it's command-line + headless only, but that's all you need for most of your CI-driven regression testing.
So I have Ubuntu 14.04 Installed on my system with a few "tweaks", mainly ccsm. I also have google chromium browser installed as well. I do a lot of work in the browser and usually have 10+ tabs open in my system.
I also like to use the multi-window (Workspace) and have 8 Workspaces (thus one of the reasons for ccsm).
Once I leave the computer and try to come back (before the screen locks), the computer is COMPLETELY frozen with my HDD running at very high speeds. I have a system monitor that monitors the CPU activity and HD activity and right before those things freezes, my RAM is at 100% and so is my HDD.
I'm wondering if anyone can help me FIGURE OUT what the problem is? I've been using ubuntu since '08 so I'm familiar with it. I just don't know where to start!
HELP!
I can not deal with the problem until I install the following packages as follows
sudo apt-get install linux-generic-lts-quantal xserver-xorg-lts-quantal
You could get the detailed reason from http://www.howtoeverything.net/linux/hardware/random-freezes-integrated-hd-4000-graphics
Maybe you have to consider the Google Chrome or Chromium, whose two or more different Flash plugins conflict with each other, and the freeze problem disappear after you Disable the Flash plugins in the webpage opened by inputting
chrome://plugins
in the URL address of Chrome
Or another useful method of changing the chrome plugins is to uninstall the google-chrome completely,and then install the current chrome with newest flash plugin.
After all the above are done, the system need restart.
Hope it can help. Good luck!
Recently I've been dabbling with vagrant and docker. These are quite interesting tools, but I haven't been able to convince myself that it's the way to go quite yet on my OS X machine. Being an old Unix hat, I have to say that I like having a consolidated and sandboxed environment for development purposes.
I've seen a lot of chatter and a number of friends have been using vagrant with just stock vim for editing. I'm not really a fan of that approach and would probably prefer to use the vm provider's sharing mechanism OR, more likely, NFS.
Personally I'd like to be able to edit directly in TextMate, SublimeText, Emacs (on OS X), or even perhaps use RubyMine and its various IDE features, etc.
Is there any way to really get the workflow down so that such an environment will be essentially like working on a local environment without having to pull a lot of additional background strings to make things work out?
I suppose a few well placed scripts could go a long way, but I've not found any solid answers on really making this a seamless environment.
What actually worked for me was to use boot2docker which makes it easy to install a lightweight virtual machine (with VirtualBox) that will host your docker deamon and images. The only thing you need in order to run docker commands is to run $(boot2docker shellinit) when you open a new Terminal.
If you need to also have your files on an OS X folder and share them with a running docker image, you need some additional setup, but once you do it, you won't have to do it again.
Have a look here for a nice walkthrough on how to do it. The steps in short are:
Get a special boot2docker image that allows you to use shared folders for VirtualBox
Configure VirtualBox to share a folder:
VBoxManage sharedfolder add boot2docker-vm -name home -hostpath /Users
This will share your /Users folder with the boot2docker image that hosts docker.
From you Mac share the folder you need with a folder in a docker image like:
docker run -it -v /Users/me/dev/my-project:/root/src:rw ubuntu /bin/bash
One small annoyance that I haven't found how to overcome is that you do not longer access your software through localhost because it actually runs on boot2docker instance. You have to run boot2docker ip and access that ip.
Hope that helps!
I am currently working in Automation QA. Our project using Java: jbehave, thucydides, selenium. We are working in Ubuntu OS.
Every time I run my tests, I have to stop doing everything(coding, browsing the web), because every click or any action of selenium is taking driver window(we are using chrome driver) in focus(makes window active) and if i do something i mess up the test. Our team is wasting a lot of time because of this.
We have tried Phantomjs, it doesn't work correctly, cannot find elements etc... And also to run tests in virtual machine using vagrant isn't working for us(for company specific reasons).
It is fine if Chrome driver will take over active window when it starts, as long as it would continue performing different actions in background. Strange, but in my previous project(windows, c#, mstest) chromedriver would behave exactly like this without any additional setup.
Please help, I know few other teams having this issue. Seems like this issue only on Mac and linux.
After having this issue for a long time I have finally found a good solution. This issue still remains on ChromeDriver level, so if there are any updates on this side let me know.
The easiest way to run tests in Ubuntu in a background is using VNC Server. Here are the steps you should follow:
Install vnc server from ubuntu terminal:
sudo apt-get install vnc4server
Start server with any number(I use 7). First time doing it enter password for vnc server(Remember it!).
vncserver :7
To start server in full screen add "geometry" to last command with your screen resolution for example:
vncserver :7 -geometry 1920x1080
Download some VNC Viewer. I use Real VNC.
Go to Real vnc viewer, start new connection and enter:
VNC Server: localhost:7
Encryption: Let VNC Server choose
Press connect and enter your vnc server password(the one from step 2).
New window should be opened, open new terminal in it.
Run your test from terminal. I use java maven project so for me it works like this. Navigate to project folder and run: mvn clean install
If you want simply to run test in hidden mode using only terminal(without opening vncviewer) use this command:
cd path/to/project
xterm -display localhost:7 -e mvn clean install
If you want to stop server:
vncserver -kill :7
Hope this will help many of you.
For me (I had the same problem in my Grails project's functional test using Chrome; not with Firefox) works this set up:
ChromeOptions options = new ChromeOptions();
options.addArguments("--start-maximized --disable-popup-blocking");
new ChromeDriver(options);
Regards