How to get the story name programmatically - jbehave

I am running multiple jbehave test files at once, and I need to get the story name of each file and save it.
I want this to be done on each step so I could know how many times a specific story is calling a specific step.
Is this doable, and if yes how it can be done?

you can try using Meta parameter as shown in the JBehave website:
JBehave Meta parametrisation
In your case, you'd need to set a storyName parameter in each story and then accept it in your step methods.

Related

Facebook Custom Story Map Attachment

I can't for the life of me get my custom story display in the Map layout. I have done this before but that solution is no longer working either so I'm starting to think something has changed.
Current Setup
I have a custom object type Track with a self-hosted object here (please see the source code for object structure). This object has a required field called route which contains multiple GeoPoints. I will put the GeoPoints in another file at some point but that causes other problems at the moment.
I have a custom action called Ski that obviously has the field Track which references the object.
In my custom story which is Ski a Track, I have edited the attachment to be a map layout and set the Route to be track.route.
Now when I create an action which references my self-hosted object using the Graph API Explorer I get an ID back which means its been created. I can also see the story on my timeline.
The Issue
The story is always in the standard layout.
My Question
Is it possible to still use the map attachment. If so what am I doing wrong?
UPDATE
For those interested I have submitted a bug report here. For anyone also experiencing issues of this nature then please subscribe to it as Facebook may deem it important enough to sort out.

Is it possible to add a custom parameter in a Open Graph story with a common action?

We're working on a fitness application where people run and carry out a physical activity for the community as part of a workout.
For example, on Wednesday, Axel ran 5.6km and helped dig a wild flower garden.
We want to build an easy way for users to share these stories on their timelines in Facebook with a map of the course they ran and a sentance that describes the activity. We've opted to use the fitness.runs common action and can provide the course information easily enough, however it's not clear if or how we can add a custom parameter task in the sentence. Ideally the story (with accompanied map) would read:
*Axel* ran *5.6* km to *help dig a wild flower garden* with GoodGym.
Any advice on how to get that working would be greatly appreciated.
I do not think this is possible. Looking at both the run action and the course object you cannot add custom properties. For example, when you go to configure the run action you see the following message at the top "Common Action Type: Run You are viewing the configuration options for the common Action Type: Run. These are read only and are displayed for informational purposes only."
However you might want to consider using User Messages which "allow users to write a personalized message attached to this action." Then you could encourage users to write something about what they helped to do.

Export of all tags, not only your own

When you get a list of files through the Box API, you also get the tags assigned to those files in string format. These tags include your own Box tags as well as shared tags (My Tags vs All Tags).
However, if you want to verify in a later phase if some of these tags have been deleted for instance, that seems not possible. The 'export tags' API method only returns your own tags.
This makes it really difficult to keep tags in sync, and I don't see a good reason why you would be able to see tags in the Box UI but not in the API. In the end it's just another representation of the same data, or that's what you would expect.
Anyone knows a possible workaround for this?
There isn't a known workaround for this at this time, but we're in the process of building out tags support in our V2 API and will take this use case into consideration.

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... :-)

Intercepting form submission and displaying results in cakephp without JS

In my Manager controller's add action I want to intercept the form submission, perform a search using the submitted data, and (if the query returns any results) display a list of results to the user.
My question is: what is the best way to display the results to the user? Should I just redirect to a different action (say search), or is there a nice way to display the data while remaining in the add action (session flash maybe)?
I know this can easily be done with the ajaxHelper and I am approaching this from that angle too, but I also need this functionality for my non-javascript users.
Any ideas appreciated!
badp,
you could just have a look at one of the generated (by cake bake controller ..., resp. cake bake view) controller methods named edit and look at the dataflow there.
It should be easy to adept it to your needs from there, as you can compare the dataflow and its outcome visually.