headless

Run Java AWT/Swing GUI app in headless server

陌路散爱 提交于 2019-12-18 09:16:09
问题 I have a gateway application that comes up with a login dialog and then a GUI window. I will be running this app on a co-located server without a display. I need to interact with the dialog only when logging in and perhaps to check out the main GUI occasionally. The server is Debian 5.0. The only ideas I have so far are: Tunnel an X session to my desktop for logging in but I'm not sure what will happen if the X session disconnected (ie, I reboot my desktop, etc..) Try to instantiate/launch

How to set the browser language of PhantomJS

£可爱£侵袭症+ 提交于 2019-12-18 09:12:31
问题 I'm using DalekJS with PhantomJS to test a web application. I have important assertions which depend on the browser language. And these fail if the language is not English. Any Ideas how I can set the default browser language of pantomjs?? Cheers izocan. 回答1: This question has been further discussed here: https://groups.google.com/forum/#!topic/dalekjs/HHt6eoZRQc4 回答2: Let me answer my own question: The problem is solved when you use following code in your index.html: <script> localStorage

How to connect to Chromium Headless using Selenium

醉酒当歌 提交于 2019-12-18 02:38:15
问题 I would like to use chromium headless for automated testing using selenium. (https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md) I do have the headless version already running on 9222. So if i open http://10.252.100.33:9222/json/I do get [ { "description": "", "devtoolsFrontendUrl": "/devtools/inspector.html?ws=127.0.0.1:9223/devtools/page/0261be06-1271-485b-bdff-48e443de7a91", "id": "0261be06-1271-485b-bdff-48e443de7a91", "title": "The Chromium Projects", "type": "page"

How to test JavaFX 2 in a headless environment?

↘锁芯ラ 提交于 2019-12-18 01:16:55
问题 I am trying to automate testing for a JavaFX 2 application running on Java 7u6 with the integrated JavaFX 2.2. To that end, I have built and integrated Jemmy3 and JemmyFX into my build environment. A simple smoke test runs on all relevant OSs. As a next step, I want to run the tests as part of the continuous deployment process. Since the current CI server runs on OpenSUSE, which is not officially supported by JavaFX, I have set up an Ubuntu Server installation in a virtual machine and

Selenium and Headless Environment

送分小仙女□ 提交于 2019-12-17 23:21:38
问题 I recently installed Python 2.7, Robot Framework and the Selenium Library (I still don't know if I succeeded though...) on a Red Hat Server to run some test on a web application. So I tried a simple test case using Robot Framework to see if Selenium Library is functional, just to Open a web page, nothing more... Selenium Server is up and running according to the result of ps, and Firefox binaries are in the PATH... Running the test case from the Robot Framework (with the pybot testcasename

Real headless browser

て烟熏妆下的殇ゞ 提交于 2019-12-17 22:34:33
问题 I am in charge of testing an enterprise web application that makes heavy use of AJAX. I need to build a system that allows continuous running of tests without human intervention. Currently I am mostly interested in load testing but I want the same scripts used to generate load to be used in functional tests. Currently for loadtesting I am using the grinder. We record scripts and then process the heck out of them to handle among other things the asynchronous requests. This system works for now

Libreoffice convert-to not working

有些话、适合烂在心里 提交于 2019-12-17 19:12:53
问题 I'm trying to convert documents from html,txt to pdf,odt and vice versa.. But only odt to pdf seems to work.. No other file formats are converted Here are my commands libreoffice --headless --convert-to pdf test.html [Not working] libreoffice --headless --convert-to odt test.html [Not working] libreoffice --headless --convert-to pdf test.docx [Not working] libreoffice --headless --convert-to pdf test.odt [Working] 回答1: This is a known issue in LibreOffice that was fixed in version 5.3.0.

Selenium working with Chrome, but not headless Chrome

核能气质少年 提交于 2019-12-17 16:27:37
问题 I've developed a couple of Python scripts using Selenium and, at first, PhantomJS. While heading toward automated downloads, I switched for (headed) Firefox (which worked) and then Chrome with the headless option so I won't have the browser opening in front of me. My first script, which accesses a page and a couple of HTML elements, works perfectly with headless Chrome. The second one, however, works only with headed Chrome . If I add the "headless" option, it doesn't work anymore. When I try

Chromium/Chrome headless - file download not working?

三世轮回 提交于 2019-12-17 09:42:02
问题 I downloaded the latest version of chromium, to test out the headless feature. When I run (as root, because I'm still testing things): ./chrome --no-sandbox http://cp7.awardspace.com/speed-test/awardspace-data1mb.zip In the GUI terminal, it opens Chromium and downloads the file. If I'm trying to run it headless, I enter the following: ./chrome --no-sandbox --headless http://cp7.awardspace.com/speed-test/awardspace-data1mb.zip The terminal outputs some information, no window gets opened, but

Chromium/Chrome headless - file download not working?

北城余情 提交于 2019-12-17 09:41:59
问题 I downloaded the latest version of chromium, to test out the headless feature. When I run (as root, because I'm still testing things): ./chrome --no-sandbox http://cp7.awardspace.com/speed-test/awardspace-data1mb.zip In the GUI terminal, it opens Chromium and downloads the file. If I'm trying to run it headless, I enter the following: ./chrome --no-sandbox --headless http://cp7.awardspace.com/speed-test/awardspace-data1mb.zip The terminal outputs some information, no window gets opened, but