How to set ID for Automation Adapter?
I want to integrate my testtool with RQM 4.0.6 using a custom automation adapter. To learn how to develop a custom automation adapter I want to run the Sample Test Automation Adapter Source.
So far everything works fine. But I want to tune the programm a bit. When I run the programm the adapter is displayed at the adapter console. The adapter is matched with an ID. Is it possible to set the ID while register / login with the programm?
I have the problem that sometimes the adapter registers with a new ID (I guess it happens when I start the programm 2 times in parallel, but I'm not 100% sure about this). Over time it can be very frustrating to delete the old, inactive entries in the adapter console table.
Until now I couldn't find a setting to fix this problem. Can you help me?
Thanks
Michael
Accepted answer
adapter: is a user given adapter identifier. If not specified, a unique value will be generated. If specified, this value MUST be unique across all adapters in a given project as it is used by the RQM server to identify this adapter.
Comments
Hi Paul,
thanks for your reply. The -adapter argument looks like the one I was searching for, but I couldn't set it, because I don't know how or where to set it.
But I found the solution on another spot. The automation adapter receives an adapter-URL (lines 802-805) from the rqm server and stores it in the property-file. Because of the class WriteThroughProperties the property will be saved on disk. So on the next start this adapter-URL will be read from the property-file (line 181). And with this adapter-URL the same adapter will be used again.
My Problem at this point was that I reset the properties due to adding some values to it and therefore unknowingly deleted the about-property. Without this property a new adapter will be created.
Thanks again for your time Paul.