Add chrome web driver in RIDE (robot framework) - selenium

I am new to robot framework.
I have put the chromedriver.exe file in the path of system. Now, when I am running scripts in RIDE I am getting this error:
WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home
Is there is any other way of setting path in RIDE itself?
UPDATE: My path variable includes:
C:\Driver\chromedriver.exe;

As mentioned in the Robot framework installation guide,How to set the environment variables.
Place the chrome driver in te path "C:\Python\Scripts" and make sure this path "C:\Python\Scripts" is updated in environment variables.If you have any clarification check the below link.Under the heading Setting PATH on Windows
https://github.com/robotframework/robotframework/blob/master/INSTALL.rst

Download Chromedriver.exe from its official website, extract the .exe file and copy this .exe file in scripts folder of Python installation, e.g. C:\Python36\Scripts
After this, add this scripts path in Environment variable

Related

Selenium file download test case in Jenkins

I downloaded a file in one of my local folder(say CSV_downloads) using selenium and its working fine,but when I am pushing same code to Git and running it in jenkins,though that folder(CSV_downloads) exists in jenkins workspace(CSV_downloads) its not downloading csv to that particular folder(CSV_downloads) in jenkins.
If you use a hard coded location like C:\CSV_downloads then it will not be downloaded into jenkins folder. So you have to see the folder locations in local and remote machines.
Try to use relative paths like System.getProperty("user.dir") +"//folders.." where System.getProperty("user.dir") is your project folder.
also if the folder is not there then try to create directory like folderName.mkdirs();

Location for install.rdf

I am trying to write a plug-in for selenium UI and following this tutorial. Below is an excerpt from this.
First, what you need is an ‘install.rdf’ file and is located in the
root dir of your workspace
I am not sure what is root directory of workspace here mean. So I have firefox and selenium installed on my computer. Where exactly should I create this install.rdf
The root directory mentioned here is the root directory of the IDE source code. You can download IDE src code from location given below and put the install.rdf in the root.
Selenium IDE src code
Once you have made changes to the plugin src as per your needs. You can build it and install the .xpi hence built to your firefox instance like a regular extension and test it.

Setting IEDriverServer location with protractor

Where do I define the IEDriverServer path? Is it in the protractor config file? If so, how do I do it correctly?
I've been looking for ages but most solutions seem to give answers for java, i'm using protractor with grunt and node, whenever I run the grunt task I have made for IE or change the capabilities browser name to IE I get the following error in the console/webstorm console:
The path to the driver executable must be set by the webdriver.ie.driver system property;
a search for that usually takes me to an article that guides me to
http://code.google.com/p/selenium/wiki/InternetExplorerDriver
but to be honest that's not much help past downloading the driver, as it doesn't say where, or how, I set that system property.
Hope I'm being clear. Thanks.
The path in question is the environment variable PATH. You can test this by placing the driver executable in somewhere like C:\Windows\System32\ that ought to be in the PATH already, and running the tests.
To add a directory to the PATH, navigate to Control Panel > System > Advanced system settings > Environment Variables and locate Path in the bottom window. Select it and click Edit. Enter the directory here, separating it from the previous directory with a semi-colon. For example, you might add the following to the end of the existing path:
;C:\Drivers\

How to generate load testing reports using jmeter?

I have performed a load test using JMETER.
But now not able to generate reports for the test.
To generate report I have followed these steps:
Create a new variable JAVA_HOME in the environment variable and set the path for the JDK.
Create another variable ANT_HOME and set the path for the Apache-ant.
Create another variable PATH and set the path for apache-ant up to BIN folder.
Place the ant-jmeter-1.0.9.jar file in side ‘Extras’ folder. Which is located in the path jakarta-jmeter-2.3.2->extras
Navigate to the ‘build.xml’ folder of the jmeter which is located in the path jakarta-jmeter-2.3.2->extras->build.xml.
Set the classpathref = “D:\loadtest\jakarta-jmeter-2.4\extras\ant-jmeter-1.0.9.jar “
Set jmeterhome=”D:\loadtest\jakarta-jmeter-2.4″
Set style=”D:\loadtest\jakarta-jmeter-2.4\jmeter-results-detail-report${style_version}.xsl” and save it.
Now copy jmx file and the build.xml file put it in a folder (Loadtest) where ever you want to generate the report.
Open command prompt and navigate to the folder where jmx and build file is located.
To run a test and create the output report:
Type the command “ant -Dtest=script”(for eg. I have my test.jms file and the command is ant -Dtest=test)
By following above steps Reports are not generated but I got following error:
BUILD FAILED
D:\Loadtest\result\build.xml:85: Reference D:/Loadtest/jakarta-jmeter-2.4/
extras/ant-jmeter.jar not found.
Can you help me find the solution?
Check jMeter version. The error says you're using 2.4, but your Jmeter home points to 2.3.2.
Did you include ant-jmeter-1.1.1.jar in your Ant classpath ? Adding the jar to $ANT_HOME/lib will make this happen automatically.
See:
http://www.programmerplanet.org/pages/projects/jmeter-ant-task.php
ant-jmeter-1.1.1.jar is in jmeter/extras folder.
Furthermore I suggest you upgrade to last JMeter 2.7 version as it contains enhancements of the report.
Regards
Philippe M.
http://www.ubik-ingenierie.com/-Solutions-

SenchaSDKTools-2.0.0-beta3-windows Command not working

I have installed SenchaSDKTools-2.0.0-beta3-windows on my windows Xp 32-bit.
following is the command I am running on command prompt.
C:\Program Files\SenchaSDKTools-2.0.0-beta3>sencha app create MyApp c:\xampp\htdocs\sencha\myapp\
Giving following error
[ERROR] the current workind directory (C:\Program
Files\SenchaSDKTools-2.0.0-beta3>) is not valid SDK directory. Please
'cd' in to a SDK directory before executing this command.
environment variable has been set following way.
Variable name : Path
Value : C:\Program Files\SenchaSDKTools-2.0.0-beta3
can anyone figure out what exactly wrong in this process ?
*****Sencha Touch setup Guide steps(in Window)******
Download Sencha Touch SDK Tool. (http://www.sencha.com/products/touch/download/ -->SDK Tools Beta for Developers). Run .exe file. It will install tool to default path. (i.e. C:\Program Files\SenchaSDKTools-2.0.0-beta3)
Download Sencha Touch SDK. (Download openSource version file licensed under GPL.).
Extract SDK you just download in step 2.
Open Command line terminal (start->Run->type cmd). Change directory path to SDK path as you just extracted in step3.
Verify that Sencha Command is working properly on your machine. So Type Sencha.
E.g. sdkPath>sencha
you will see "Sencha Command v2.0.2" message with other sencha command detail.
Create app in your web directory by typing following.
E.g. sdkpath> sencha app create firstSenchaApp "path/ to/ www"
(If you have tomcat 7 installed in your computer, give path to \apache-tomcat-7.0.30-windows-x86\apache-tomcat-7.0.30\webapps)
Note: There must not be space in directory path name. _(underscore),- (desk) are allowed.
If app is not generated in step 6. There might be an error. There are as follow:
If error message appear is "sencha' is not recognized as an internal or external command, operable program or batch file.”, follow these steps to troubleshoot:
The path to SDK Tools directory is prepended to your system's PATH environment variable.
From the terminal, run
echo $PATH or echo %PATH% .
The SDK Tools directory should be displayed in part of the output. If this is not the case, add it to your PATH manually.
The environment variable SENCHA_SDK_TOOLS_{version} is set, with the value being the absolute path to the installation directory mentioned above.
For example: If the installed version is '2.0.0-beta2', a SENCHA_SDK_TOOLS_2_0_0_BETA2 must be set.
From the terminal, run
echo $SENCHA_SDK_TOOLS_2_0_0_BETA2 or echo %SENCHA_SDK_TOOLS_2_0_0_BETA2% on Windows.
If the output is empty, set the environment variable manually.
Wrong Current Working Directory
A common mistake is not running Sencha Command within either a valid SDK directory or an application directory. If the current directory is not a SDK or application directory, "sencha" command will fallback to backwards-compatible mode. As of SDK Tools release "2.0.0-beta2", you should see a clear warning in such case:
"The current working directory (...) is not a recognized Sencha SDK or application folder. Running in backwards compatible mode." So in this case follow proper step as mentioned above.
Reference:
http://www.sencha.com/forum/showthread.php?192169-Important-SDK-Tools-Sencha-Command-Update
There is an invisible file that you need to copy, called .senchasdk. Make sure it is in the folder.
I think you're having the same problem I had; I had attempted to run 'sencha app create...' from the folder containing sencha.bat. Instead, you need to run 'sencha app create...' from the sencha-touch-2.0.1.1 folder (which contains the .senchasdk file).
See this previous SO question!
Save my days.
By the way, if you can't extract the sencha-cmd to sdk tools, try to extract on other location and copy the folder [3.0.0.250] to your sdk tools > [bin] folder.
hope this helps.