Khi mà gần như mọi tester đều có thể dùng những chức năng cơ bản của postman, bạn cần phải nâng cấp skills, dùng được những chức năng khác để làm test được dễ hơn, nhanh hơn. Dưới đây là những thứ mà bạn nên biết: Show Update: The Postman SMTP Plugin has been replaced by the newer Post SMTP Mailer/Email Log. Check out our article on how to setup your site with this newer, more secure email plugin for WordPress. So you have a WordPress website and the site isn’t sending emails. One of the best plugins to help you do this is the Postman SMTP plugin for WordPress. This highly popular plugin allows you to send emails from your website using Gmail, SMTP an a host of other email server protocols. This article will help you setup the Gmail API option. To setup your WordPress site to send emails using the Gmail API: Step 1: Install the Postman SMTP Plugin
Step 2: Tell Postman SMTP to use the Gmail API
Step 3: Create API SettingsThis part of the process is long BUT stay with it. Follow the bouncing ball and you’ll be fine.
Step 4: Link Postman SMTP to the API SettingsNow that you have the ID’s in your WordPress website, you will need to grant permission to Google to allow Postman SMTP to talk to it. Newman là 1 tool của Postman, chuyên dùng run collection bằng command-line (cli). Nó sẽ phù hợp cho các trường hợp mà sử dụng các CI tools như Jenkins, TeamCity, hay TravisCI… Chốt lại: Newman giúp run collection mà không cần phải mở chức năng Runner ở postman. Newman có 2 cách sử dụng chính:
II. Cách cài đặt1.Cài đặt NodejsDownload: https://nodejs.org/en/
2. Cài đặt Newmannpm install -g newman III. Sử dụngĐể chạy được các lệnh của newman, thì bạn phải export postman collection trước. newman run examples/sample-collection.json Ngoài ra để run thêm các thứ khác, ví dụ: -e <source>, --environment <source> //E.g: -e .\postman-script.postman_environment.json Run kèm Environment (đã được export từ postman) -n <number>, --iteration-count <number> // E.g: -n 5 Số lần lặp lại khi run collection Full-list option sẽ nằm Ngoài ra, nếu bạn muốn có 1 cái report đẹp đẽ bằng HTML, thì nên sử dụng newman-reporter-htmlextra npm install -g newman-reporter-htmlextra HTML report sẽ được tạo ra ở folder ./newman IV. Tổng kếtNewman là 1 cách để bạn run test khá nhanh và phù hợp cho việc sử dụng trong CI/CD pipeline. Biết cách sử dụng linh hoạt newman sẽ làm cho bạn càng ngày càng “có vẻ” pro hơn, dễ “làm màu” hơn trong mắt người khác. Hi vọng nó giúp ích gì đó cho bạn. |