Is separate set of selenium jar files needed for linux os? - linux

I am using Selenium Webdriver(v 2.47.1) automation tool in windows operating system. I have created one automation script using Eclipse IDE and integrated script with Jenkins CI. In Jenkins I created new job with help of windows batch file. Jenkins job successfully completed.
I have uploaded same set of code(contains src, lib, bin directories..) to Linux server where Jenkins CI is installed and tried to create new work using Jenkins. In Linux OS I have used shell command to build the project. Project not builded successfully..
I don't know where the actual problem is..? Please help me on this

There is few things which can effects scripts in Linux environment
1st is batch file you are using
refer it to resolve it if exist in your case
http://stackoverflow.com/questions/32120102/bash-file-is-running-fine-in-windows-for-testng-but-it-is-not-working-in-linux-m
Another one is if your using chrome then you need to set chrome binary according to linux
http://chromedriver.storage.googleapis.com/index.html?path=2.16/
Hope it will help you :)
If still you are facing problem then please share the error your get on terminal/Jenkins jobs section

Related

Cannot launch python via cmd

Currently I'm working on a project to deliver apps via MSIX packaging including python as one of them. I've already created an msix package for the same with below settings :
So the MSIX package displays the environment variables added to the system path
VHD has been mounted (staged) and registered on test machine, however I still cannot open python via cmd
I'm a bit new to the MSIX packaging tech, so any help would be appreciated.
Users to be able to run python from cmd.
Files that are packaged and deployed with an MSIX run inside a container. This means that these files will not be "visible" by default to tools like cmd or Powershell.
You need to define an appExecutionAlias in your package manifest. The following SO question has more details:
How to run an MSIX installed application from the command line
If you're using the MSIX Packaging Tool or Visual Studio to build the package, you need to manually edit the AppXManifest.xml file and add the appExecutionAlias element.
If you're using other commercial tools, you probably have a GUI option to include and configure it.

What image to use in .gitlab-ci.yml file for running fastlane in gitlab-ci?

I want to integrate my fastlane into gitlab-ci and I do not know what image I will use.
Unfortunately iOS requires the code to be compiled on OSX
If you have access to a mac you can install a GitLab Runner and register it to your GitLab repository.
When setting up this runner you should give it a tag name (something like osx) and when it comes to selecting the executor, you should choose shell(so the jobs will be run directly on your mac machine).
After you have a mac runner up and running, you should also make sure you have all the tools that you normally are using like fastlane, xcode and Android Studio setup.
Now in With this setup you don't need to provide any image to your ci job. But rather give it the tag name you gave your mac runner.

Jenkins and Sonar - How to use Sonar Runner with Linux (Because it only has a .bat executer)

I have a distant linux system with a Tomcat containing Jenkins and the Sonar server (v 3.7.4). I am also using the Sonar Runner (v 2.1), but can I really use it in a linux environnement ? I mean, the bin repository only contains a .bat file, no .sh.
So if in Jenkins I set the SONAR_RUNNER_HOME to the path of my sonar runner install repository on linux, is it gonna work ? Because obviously if I want to run the .bat file myself to do test it (after the creation of sonar-project.properties file), well, I can't.
I didn't find anything about that on Google, as if there was no problem about it.
You can use sonar-runner which is shell script (it's marked as a Unix executable).
However, please note that Sonar 3.7.4 is really old (more than 3 years old). So I highly suggest to upgrade to latest LTS (5.6.6) and you will benefit also of the Jenkins plugin (https://docs.sonarqube.org/display/SCAN/Analyzing+with+SonarQube+Scanner+for+Jenkins)

How to auto run jar file in Linux (fedora, ubuntu) such as service on Windows

I made executable jar file for release to customers.
For Windows, I made .exe setup file.
if exe file executed, made jar file installed and auto run on service.
But, I don't know way for release linux like Windows.
I want to setup and then auto run in linux such as made for windows exe file.
Anyone know how to do this?
I found informations like packaging but, these things do not seem to be what I want.
You can create a custom RPM package which install your executable jar. You can also add steps for installing systemd unit file(init file if on older Linux system) which will run your jar as service.
These RPMs uses script which specifies what to do while installation. Just add the steps to copy jar to /bin directory and steps to create/install/enable systemd unit file onto system.

Eclipse with Remote Unit Tests

I'm working on a Mac. My dev server is linux. My directory is mounted over SSH using FUSE. How can I execute my ant script on the remote server within Eclipse? Right now I'm just switching to a terminal and running ant manually.
Please, no suggestions that I run the tests locally.
I don't believe Eclipse has any built in support for running ant-scripts remotely (that is, after all, not a very common use case). The alternative is to run the ant-script using ssh as an external program. You won't get the ant builder's settings, but otherwise it should work.
If you are using Eclipse, have you checked out the Target Management plugin?

Resources