automated testing in sandbox

78 views
Skip to first unread message

Sheila Rabun

unread,
Jun 3, 2020, 11:44:13 AM6/3/20
to ORCID API Users
Hi all, 

I am working with an institution implementing the ORCID member API currently in the sandbox, including Oauth and writing data to ORCID. They ask: 

Do you have any guidance for implementing automated end-to-end testing of our integration using the sandbox environment? I can see how, with some effort, we could set up a scenario where a user is already authenticated/authorized and then we could test reading/writing data via the API, but I’m not sure that it would be easy/possible to test the OAuth workflow in an automated fashion. We have good unit tests for all of the functionality around our ORCID integration, but we’re lacking an end-to-end test of any kind. I’m just curious if this is something that other folks have wanted to do and if there are already any resources that you could point us to that would help. 

Any guidance here?

Thanks,
Sheila

Pedro Costa

unread,
Jun 5, 2020, 9:57:53 AM6/5/20
to ORCID API Users
Hi Sheila,

Thanks for posting.

We don't have any specific guidelines for something like this.

ORCID has built some tests using selenium which you are welcome to share with the institution:



I hope this helps!

Kind regards,
Pedro

Alain Borel

unread,
Jun 24, 2020, 3:21:46 AM6/24/20
to ORCID API Users
On 6/5/20 3:57 PM, 'Pedro Costa' via ORCID API Users wrote:
ORCID has built some tests using selenium which you are welcome to share 
with the institution:

https://github.com/ORCID/ORCID-Source/tree/41993d3d83654f28d061c596225ce7d3b1676f87/orcid-integration-test/src/test/java/org/orcid/integration/blackbox

https://github.com/ORCID/orcid-independent-tests

I hope this helps!


Dear all,

My bosses have asked me to monitor the status of the connections of my application with various infrastructure elements, in order to automatically report any failures to our support system and set the application to some kind of stand-by mode until complete service is restored.

I was thinking about reading the Josiah Carberry example profile https://orcid.org/0000-0002-1825-0097 using the public API, but this profile doesn't seem to exist in the sandbox so I can't have an exactly parallel behavior in my testing and production instances.

Maybe I am approaching this question the wrong way. Does anybody want to share or suggest good practices to verify the API connectivity?


Best regards,

Alain Borel

EPFL Library

CH-1015 Lausanne (Switzerland)

Pedro Costa

unread,
Jun 26, 2020, 6:05:09 AM6/26/20
to ORCID API Users
Hi Alain,

You can create an ORCID iD on Sandbox for your testing, and then populate that record with information identical to what you see in Josiah Carberry's ORCID record on Prod.

Kind regards,
Pedro

Alain Borel

unread,
Jun 26, 2020, 6:27:13 AM6/26/20
to Pedro Costa, ORCID API Users
On 6/26/20 12:05 PM, 'Pedro Costa' via ORCID API Users wrote:
You can create an ORCID iD on Sandbox for your testing, and then populate that record with information identical to what you see in Josiah Carberry's ORCID record on Prod.

Will that test account be conserved over time, or do the Sandbox platform administrators clean up the mess that developers have created every now and then?

If the Sandbox records can be considered reasonably stable, indeed this would work for me.

Thanks for your response,

Alain Borel

Pedro Costa

unread,
Jun 26, 2020, 6:41:43 AM6/26/20
to ORCID API Users
Hi Alain,

We don't do any clean up in that sense so the testing account would retain whatever information you add to it.

Kind regards,
Pedro

Alain Borel

unread,
Jun 26, 2020, 6:49:35 AM6/26/20
to Pedro Costa, ORCID API Users
On 6/26/20 12:41 PM, 'Pedro Costa' via ORCID API Users wrote:
We don't do any clean up in that sense so the testing account would retain whatever information you add to it.

Excellent! Thanks for enlightening me, my task has suddenly become much easier thanks to you.

All the best,

Alain Borel

Reply all
Reply to author
Forward
0 new messages