简体   繁体   English

DocuSign 集成测试

[英]DocuSign integration tests

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.我正在编写一个应用程序,该应用程序应该与 DocuSign 交互以创建信封,然后在所有签名者都签名后下载已签名的文档。

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?我是否需要自动化签署人与 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?有没有办法在开发环境中“模拟”签署方的行为?

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.因此,该部分需要使用 Selenium 或其“风格”之一或几乎任何您熟悉的 UI 自动化进行自动化。 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.您可以使用 Mailinator 或任何其他电子邮件服务,您可以利用其 API 为您提供便利。

As for other parts of DocuSign integration automation it is encouraged to use API (makes things more stable).至于 DocuSign 集成自动化的其他部分,鼓励使用 API(使事情更稳定)。

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)使用 API 准备环境,发送变量和值(在您的产品和 DocuSign 中)
  2. Send envelope for signing using DocuSign API使用 DocuSign API 发送用于签名的信封
  3. Get the link to the document获取文档的链接
  4. Sign using UI automation使用 UI 自动化签名
  5. Do verification (of envelope status and more) using DocuSign API使用 DocuSign API 进行(信封状态等)验证

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM