Proxy settings for Selenium#library with robot Framework and VNCserver - linux

Hi I am writing testcases in robot Framework with Selenum2Library.
I am running my Product on another VM with Proxy settings and Selenium on other machine.
If there's no Proxy I can run selenium on one and product on other.
Is there any way we can bypass proxy settings, and access the product???
I am working on Fedora and trying to access red hat ironport account.
any help is more then welcome.
THanks

You can try generate custom firefox profile in which you could set your custom firefox settings.
On my system firefox's profile (which robot framework uses by default) locates at /usr/local/lib/python2.6/site-packages/SeleniumLibrary/firefoxprofile/.
As I understand from doc from /usr/local/lib/python2.6/site-packages/SeleniumLibrary/init.py you can copy that dir, edit and then use it:
Start Selenium Server -firefoxProfileTemplate C:\\the\\path # Uses custom Firefox profile

Related

API Calls Bypassing Proxy

I'm trying to debug an api call I'm making to a Local API and I have setup a proxy (mitmproxy) to capture the requests, I have also set the proxy settings in Postman, my IDE and Fedora Network Settings and imported the required CA certificate from mitmproxy.The proxy seems to be working fine except that any API calls my code makes are not captured regardless of whether I run my code from the terminal or my IDE. I can see captured requests from other apps on my system as well as postman requests to the same API.
Proxy Tool is mitmproxy with mitmweb
IDE is Jetbrains Rider
My code is written in dotnet 6
Has anyone had a similar issue?
Try to change the proxy configuration in your machine.
In windows, proxy configuration, there is a checkbox that enables or disables the proxy for the local elements (localhosts). Try activating or desactivating this option.
Cdt,

Node JS web application to LAN application( Desktop App)

I am very new to Node JS. recently developed a web application in NodeJS & hosted it on a common server along with Database for a clinical management.
Now I have an immediate requirement of making it as a desktop application so that users in a clinic can run the exe on their desktop and the application where its installed will create a database for other users to connect and make their updates.
Checked articles with Electron, node-webkit but didn't work for my current solution.
Is there any other alternative solution where I can make it as a desktop for Windows and Mac. Seeking your kind help !!!
There is the software NEXE which shows promising results however, when it comes down too it, Node.JS is a perfectly fine platform for production environments and is quite performant for the use-case you suggest. You can bundle a Node.JS installation and call upon it from your C code using system, exec or spawn calls. You can also open your favourite browser from the command line, while Google Chrome has the --kiosk flag to show in widescreen by default.
Just some ideas.

How do I use NodeJS on Asustor AS-302T NAS

I have recently bought a Asustor AS-302T NAS, which is an absolutely brilliant solution for the home. One of it's most impressive features is that you can install apps which extends the ordinary behavior of a NAS. And if you are a developer you can also create your own apps.
While apps are fun, I have more interest in using my NAS as a kitchen-sink for my personal nodejs projects. In short I want to run nodejs application that I can then call from various other machines around the house. My own mini-cloud for IOT experiments.
Installing, one click only
Having installed NodeJS through App-Central I am at a loss how exactly to start using NodeJS on my NAS. The whole installation is essentially an on/off switch with no options or visible settings at all. I can find no documentation on practical tasks like uploading a nodejs application, deal with access rights or even execute it.
Under Windows or OS-X I would use npm via the command-line or shell, but Asustor is a purely html based interface (with the exception of XBMC through HDMI).
Why offer to users the option of installing NodeJS -if it's impossible to actually use it?
So my question has three aspects to it:
How do i get access to npm on my Asustor NAS
How do i get my NodeJS application running
Is it possible to run my application as a service (executed when the NAS boots)?
From the ASUSTOR Developer's Guide: apps are installed into
/usr/local/AppCentral/$APP_NAME.
NodeJS executables will be at path /usr/local/AppCentral/nodejs/bin/node and /usr/local/AppCentral/nodejs/bin/npm.
You can login to NAS via SSH and add them to PATH variable, or create symlinks...
I'm also searching for solution how to run them as a service (daemon), maybe an /etc/init.d script might help.

Building Single Page Application without doing any Server Side Development

I am new to any JS framework and hence I am planning to build a SPA without using any Server Side Development using Ebmer.js. Since everything need to be done at the client side, can it be done without using node.Js which does provide some server side functionality ?
Basically I would like to build a login page functionality so that user can login only when they have provided correct credentials.
To build a SPA, you can go through different framework like jQuery Mobile, Sencha Touch which are AJAX based completely and needs a server. To simulate a server and to handle AJAX request you need to host a local server. Sencha has provided Sencha CMD 5.x which you can install in any system (Windows, MAC, Linux). After installing this software you just have to browse to the folder which you want to deploy on the server.
.
Open Command prompt or terminal,and type the command sencha web start.
After this you can access your application through a local server hosted on port:1841.
You will get an access to your file system as shown below.
And the result is like

How to get instance of a service?

HI i am writing a service in wince. In the service i need to create a window. For creating window i need HINSTANCE. I can't get HINSTACE from DllMain> so How can i get the instance of the service?
Since you are not specifying the version of Windows CE you are using I will answer to the version I am familiar with - Windows CE 6.
In Windows CE 6 you need to use the UIProxy to display a window in the driver code. Since a service is very similar to a driver I guess that the same method needs to be applied. (I have not tried this though).
Read Bruce Eitman's blog about the UI Proxy to see how to do it: UI Proxy

Resources