Is it possible to read any file from selenium ide?
I want share my test case, but i won't share my own settings (logins, passwords etc).
It will be a great feature to read this data from config file.
You can use Selenium IDE plug-in "SelBlocks" for this purpose. Using this, variables can be configured via external XML and/or JSON files. Refer the plug-in's document for more details.
Download link
Document link
Related
I am searching for a way to generate the artifact.xml and the content.xml manually without using the eclipse tycho-plugin. Currently I have all the OSGi bundles and the features(with all the dependant bundles) to be installed in to the p2-repo in a seperate location. By looking at the content of the artifact.xml and content.xml files, I observed that they contain most of the meta data available in the existing bundles and features plus few additional meta data. Is it possible to generate the above two files without using the Tycho plugin.
Thank you
Might the Eclipse Features and Bundles Publisher be what you are looking for?
Eclipse brings with it some helper applications that can be run on the command line. One of it is the Features and Bundles Publisher. From the documentation:
The features and bundles publisher application (org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher) is a command line application that is capable of generating metadata (p2 repositories) from pre-built Eclipse bundles and features.
You can find more information including sample calls in the respective Eclipse documentation.
I have started creating the Spring web application where I need to mention the spring classes in the XML configuration files, for ex, the deployment descriptor (web.xml) where I need to mention the DispatcherServlet class of Spring.
What I am looking for is, I want eclipse to show me the list of packages/classes when I type org.springframework..., like we do in the Java editor. I have googled to find out, but no luck. I am sure there would be plugins available. Can any of you please share me on how to fix this?
Since you are working on a spring project, I'd recommend installing the SpringToolSuite (STS). The info page is here: http://spring.io/tools
Since you already have an Eclipse instance that you are working with, you should go with the update sites: http://dist.springsource.com/release/TOOLS/update/e4.4/
(Make sure to use the correct update site for the Eclipse version you are using.)
Not only does STS include all tools for XML editing, but it also includes special tools for editing your Spring application files.
I have never used Weka, but for my GAE Project I'm going to need it. I checked jar files on Weka website to use in Eclipse but I'm not sure which one should be downloaded. So I checked another web site and there are lots of jar files about Weka. I'm looking for a basic version of it. Could you please tell me which one is best for me. Here the links for download:
http://grepcode.com/snapshot/repo1.maven.org/maven2/nz.ac.waikato.cms.weka/weka-dev/3.7.5
http://www.cms.waikato.ac.nz/ml/weka/
All files of Weka:
http://sourceforge.net/projects/weka/files/
Thank you.
You should download all project, then build it by maven.
You can use SVN to checkout code from this link:
https://svn.cms.waikato.ac.nz/svn/weka/trunk/weka
I'm developing my first eclipse plugin and have one problem. My plugin uses external jar - this works well, problem is, that this external lib uses properties file, where are stored login and properties data. Where should I copy and add this file? Now it's IO exception thrown with "Can't find the file" error.
Thanks
There are a couple of places where a plugin can store information; which one to use is a decision based on the scope of the data and how transient or portable it should be.
Here is a short overview of some options.
You can save persistent settings as Preferences; that way users can export/import them between workspaces. See http://wiki.eclipse.org/FAQ_How_do_I_load_and_save_plug-in_preferences%3F
You can also use Plugin.getStateLocation() to get a reference to an IPath for storing internal state of your plugin.
I'm trying to write a script (Perl) that will automate the adding of Tomcat server for a Java project under Eclipse.
The project is checked out via SVN, and I want, once the project is downloaded via SVN, to run a script that will automatically configure the remaining bits of the project. In this context, I need to find how can I edit which Eclipse's configuration files to automate the adding of a Tomcat server. Actually the script will also modify other configuration files, but I'm facing a hard time trying to find which files to edit and how to add Tomcat.
Any insights will be welcome, thanks in advance.
There is a plugin for eclipse called Escripts. You can create xml like scripts to automate actions like doing wizard actions. I tried to check the documentation, but the homepage of the Escripts is giving back http 500 for me (http://escripts.sf.net). I have written a mail to the author, if he answers, I will let you know. The update site looks like working (uncheck the categorize by groups to see the uncategorized plugin): http://escripts.sf.net/updates .
Some examples you can found at http://escripts.svn.sourceforge.net/viewvc/escripts/trunk/net.sf.escripts.tests/src/net/sf/escripts/tests/
What you should enter in the script is a wizard with id org.eclipse.wst.server.ui.new.server. The plugin, that is containing it is org.eclipse.wst.server.ui. Take a look at the plugin.xml in that plugin. Without the documentation, this is what I can remember of.
Have you tried the following files in the Eclipse workspace?
.metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.jdt.core.prefs
.metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.jdt.launching.prefs
.metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.wst.server.core.prefs
.metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.jst.server.tomcat.core.prefs
I took the following files and dropped them into a new instance of eclipse and it created the Tomcat server under Server->Runtime Environment.
http://dl.dropbox.com/u/9591144/StackOverflow/org.eclipse.jdt.core.prefs
http://dl.dropbox.com/u/9591144/StackOverflow/org.eclipse.jdt.launching.prefs
http://dl.dropbox.com/u/9591144/StackOverflow/org.eclipse.jst.server.tomcat.core.prefs
http://dl.dropbox.com/u/9591144/StackOverflow/org.eclipse.wst.server.core.prefs