Protractor cucumber passing value from one step to Another step - protractor

What is the best way to share data between steps. Is there any best practices like scenario context or something of that sort in protrator?

You can have a global variables in your step defeinitions, or create a file and then in another step read it forom there.
I do not know that there is a way to pass it in feature file, not for the protractor, but selenium as well.
If you need more datils, please ask in comments.

Related

Using grunt-contrib-copy for changing Test URLs to Production URLs

I'm trying to figure out the best way of changing the URLs of files that are shared across multiple apps, from test URLs to production URLs upon deployment. I know that grunt-contrib-copy allows for regular expressions to be used to make changes such as these but I'm wondering...is this the optimal solution? Is there a better way of doing this? What approaches are others using?
Thx.
Check an answer I made on a question close to yours :
How to set AngularjJS base URL dynamically based on fetched environment variable?
Basically, you can do this with Grunt and grunt-contrib-copy or grunt-preprocess ... It's up to you if you want to replace strings or pick the right config file..
Hope this helps

is it possible to get an xPages build number?

I do all development in a single application. when a new version is ready I create a template and give it a version number. this way I can store a history of all previous versions.
the development templates are used to push the new design to many applications via replace design.
Creating manual version number or template names is fine but I am looking for a more automatic way of finding out which build the different applications are inherited from
When I visit the different applications I would like to be able to see which build number each application are inherited from. is this possible?
A simple build time stamp could do, but is there a built in build number that can be used and that can be displayed on the xpage.
e.g Build 2012092712345
Update:
Thank you for all your answers, many good suggestions but it looks like all require manual work.
The best solution would be if there is a way to read (from ssjs) a timestamp from any file within the nsf that is always updated during a build. is this possible?
In classic notes, there was a method to add a shared field with a special name to the application. Cannot remember the details, but have it somewhere on the disk.
Then you can see the build number in the design tab of the application properties. And you can of course display the value in your applikation as well.
But you have to fill the item manually on each build. Or use teamstudio Buildmanager. This tool adds the value automatically.
And I also guess that you can write some code that changes the value whenever you create a new build.
Another option would be to use a versioning system like CVS/SVN. This is possible since 8.5.3.
Source control
I think I know what you are meaning. Your a pushing out design and want to check thru code what version each database has. I usually do this with a Build form. In this form I have computed fields with all the data I want to retrieve. Then I open the database with an agent create a document
and set the form field to "BuildForm" and do a computewithform.
Now I can see all information about this database.
I once wrote a rudimentary build system for "classic" Notes, and had the last part of the build pipeline create a form named _BUILDID_, and put the build id in the $Comment field.
The main reason to create a form instead of a shared field was that I could dynamically fetch the form using NotesDatabase.Forms, and open up the desired field.
I sure hope there are simpler solutions nowadays... :-)

How to implement a Configuration Menu with Perl

I am trying to implement some kind of console menu wich has to retrieve a lot of parameters from user in order to build an XML in the end. At every step I need to do some checks on the given parameters but ofcourse those checks are different every step. Is there an easy library that can help me? With easy I mean something that already offers a pattern, I don't want to write thousands lines of codes.
What about one of these modules:
Term::Menus
Getopt::Std

Multi step form in joomla?

I have to make a multistep registration form in joomla.In first step i will only take personal information from user. IF user input the detail correct then only the yser will go to next step.
Please tell me if any plugin or component that provide this kind of functionalty
Thanks in advance
Pramod
You need to specify which version as the extensions available are different. Assuming you are using 1.5 then you can use Chronoforms. I'm not sure if the 1.6 version can do it, but the 1.5 has multistep form capability and also allows you to enter your own code for processing between forms.
http://extensions.joomla.org/extensions/contacts-and-feedback/forms/1508
Check their website for tutorials on how to make multistep forms.
I have used this one. Nice userguide included.
http://www.itoris.com/joomla-form-builder-smartformer.html

Can we add more functions using javascript in Selenium IDE?

Hi I am newbie to selenium.
I came to know that goto_sel_ide.js file which was given in one forum which helps to add the functions like gotoIf, while, label etc.,
Can we create javascript for exit and for loop like wise?
Please suggest me how to do that?
you should see the SelBlocks extension, as it has breaks.