How to create Custom Formatter in Behat 3 - behat

Since there is considerable changes in Behat 3 from the earlier versions, When I tried to create a custom formatter in the old way it threw me error. Can anyone post an example about it ?

I was struggling with same question today and here what I've done:
Create own extension (check how other extensions are implemented)
Extension must implement \Behat\Testwork\ServiceContainer\Extension
Create CustomFormatter, it should implement \Behat\Testwork\Output\Formatter
Create service definition for your formatter and tag it with output.formatter

Related

override the `/graphql` endpoint using dropwizard and kotlin

I am using dropwizard and kotlin to implement the graphql endpoints. My project uses the code first approach to generate the schema.
The code runs fine but everytime I open the endpoint http://localhost:PORT- the by default playground url displays as http://localhost:PORT/graphql. I want to update this to http://localhost:PORT/api/graphql.
I tried to override the run method of GraphqlBundle class as mentioned here - https://github.com/smoketurner/dropwizard-graphql
But, still no luck. Can someone please help in this.

How to differentiate if a TBO is called when importing new Document vs for any other operations

We are trying to add one additional feature to our method for TBO. The feature needs to be executed only when a new document for that object type is imported and should not be executed in any other case like checkin checkout or any changes in attributes.
However the new code is getting called everytime we make any changes to attribute to that document.
We have put that code in doSave() method.
I tried isNew method for distinguish between newly imported Document and other scenarios, however could not get success, may be missing the usage details of the method.
Can anyone suggest anything?
We are on Documentum version 7.2.
I always use isNew() method to check is object new or versioned, I don't remember having problems with it at any DFC version.
Only one thing that comes in mind is to make sure you don't use super.doSave() while inside the code since right after it method will return false.
But this is expected behaviour.
If you really need to do this - some calulations based on programatically preset data - make sure you use value saved within local variable throughout your code.
If you think you are experiencing bug with the method try with another DFC version or report a bug to the Support.

INotificationConfiguration does not contain a definition for 'Notifiers'

Im following the aspboilerplate documentation to add a custom email notified as per the example on this page:
https://aspnetboilerplate.com/Pages/Documents/Notification-System#multiple-notifiers
The document states the following:
Add it in the PreInitialize method of your module:
Configuration.Notifications.Notifiers.Add<EmailRealTimeNotifier>();
However i get the following error:
INotificationConfiguration does not contain a definition for
'Notifiers'
Ive tried adding what i think are the obvious using statements but thing has worked
The only extension methods that i can see are for Providers and Distributors which error if i attempt to inject the EmailRealTimeNotifier i created.
Can someone help with an explanation or workarround please.
Thanks in advance
Update to ABP v4.4+ to use multiple notifiers.
v4.4 was released in March.
v4.6 (the latest version) was released in May.

Failure in creation of feature class: Unable to create object class extension COM component

I am working with ArcGIS 10.5, installed on-premise, and are developing our feature class in .NET.
I have an issue with registering feature classes. We have created a Feature Class and registered the DLL through “ESRIRegAsm.exe”, and it appears in ArcCatalog:
Trigger appearing image
But when I try to create the Feature Class, I get the following error:
Failed to create feature class. Unable to create object class extension COM Component
Which isn't very helpful, unfortunately.
The odd thing is, that we have another trigger registered on another Feature Class, that works as expected. And the new trigger is based on a copy of the old trigger's code (with changed GUID's).
The steps I have done so far:
I have tried to add the feature class to the component category using categories.exe.
Registered it using ESRIRegAsm.exe for both Desktop and Engine.
Checked that there are .ecfg config files - and there are.
Checked that the CLSID's appear in the windows registry.
The essential parts of our trigger source-code can be found here: here.
Any help would be greatly appreciated, as we are stuck on this.
Our issue was that our ID's were wrong in the code.
The ClassExtensionCLSID should return the same ID as TriggerExtension has.
Moreover, InstanceCLSID should always return 52353152-891A-11D0-BEC6-00805F7C4268, and should hence not get a new ID.

CRM 2013 Custom Action Plugin not firing

Wondering if someone could give me a bit of help.
I am trying to use custom actions from CRM 2013, what I have is a custom action "Clone" defined as below.
I have a very simple clone record plugin that clones the passed in target entity and returns the new entity as an output parameter.
The plugin is registered to fire on the Custom action, my plan was to fire this from JavaScript but the plugin never fired so for the time being to test I have been firing this from another plugin. Using the below code.
The other plugin fires and hits the call to the execute method but the other plugin never seems to fire and the response is always null.
If anyone has any ideas what I am missing that would be great.
Thanks in advance chaps
Antony
What just get in my mind is that you have to write your OrganizationRequest("name_of_CustomAction") exactly the same way as you have written named your CA ("..._CLONE")
Have you already tried debugging your PLUGIN ? Do that with the Plugin Registration Tool from Microsoft.
If you've already got this tool just try doing it exactly like this(Step-By-Step Guide how to debug your plugin.