DocuSign integration tests

不羁岁月 提交于 2020-02-25 05:59:30

问题


I am writing an application that should interact with DocuSign to create envelopes and then download the signed document when all the signatories have signed.

There are several other use cases, but that does not matter for this question.

I am wondering what is the best way to write automated integration tests. Do I need to automate the interaction of the signatories withe DocuSign? This would mean that I have to receive the email, click the link, etc...

Even if it seems possible, it does not seem ideal. Is there a way to "simulate" in a dev environment the actions of the signatories?


回答1:


There has been a lot of talks if a document can be signed without viewing it. And the conclusion was that NO, user cannot sign a document without viewing it. User has to view/see what is to be signed. So, that part needs to be automated using Selenium or one of its "flavors" or pretty much any UI automation you are comfortable with. And Yes, that involves receiving email, clicking the link, opening a document and signing it. You can use a Mailinator or any other email service which API you can leverage to facilitate things for you.

As for other parts of DocuSign integration automation it is encouraged to use API (makes things more stable).

So, very simple workflow steps would look like this:

  1. Use API to prepare environment, sent variables and values (in your product and in DocuSign)
  2. Send envelope for signing using DocuSign API
  3. Get the link to the document
  4. Sign using UI automation
  5. Do verification (of envelope status and more) using DocuSign API


来源:https://stackoverflow.com/questions/59249383/docusign-integration-tests

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!