Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Interface Automation Test PHPUnit- introduces jenkins Automation execution

Shulou Source: shulou.com Published: 2022-06-03 03:44:24 10月04日 Update

After the testing framework is finished, we want him to run it regularly to minimize human intervention, which we can do with jenkins. Here, I would like to say that the testing framework is improved step by step, which requires manual intervention at the beginning, slowly running-in and stability before breaking away from manual work and becoming semi-automatic, and then becomes fully automated through continuous iterative improvement. This process takes time, so don't be impatient. Sometimes you really can't eat hot tofu. This is the same reason as you chasing the goddess. Ha ha

To create an ordinary job in jenkins is ok. The creation process is very simple, and there are many tutorials on the Internet. I will not list them here, but just talk about the key items:

1. Enter the command to run our script in the build > Execute shell > Command box, for example: the command phpunit demo.php should be written according to the actual situation, don't copy it mechanically.

2. You can configure whether to send e-mail according to your needs. For example, if you fail, you can customize the content and content of the email.

After the other fields are filled in correctly, you can build and see the effect.

Tags: Manual testing impatience command framework process mail run automation ordinary mechanically copied and then continuous fully automatic key content goddess field finished actual Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information macOS MariaDB Huawei