Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

COSCUP 2020 | Rain Wu | Functional verification test framework with Go

48 Aufrufe

Veröffentlicht am

The slides I use for the talk in COSCUP 2020.

Veröffentlicht in: Technologie
  • DOWNLOAD THE BOOK INTO AVAILABLE FORMAT (New Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download Full doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download PDF EBOOK here { https://urlzs.com/UABbn } ......................................................................................................................... Download EPUB Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... Download doc Ebook here { https://urlzs.com/UABbn } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book THE can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer THE is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBOOK .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, CookBOOK, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, EBOOK, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story THE Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money THE the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths THE Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Antworten 
    Sind Sie sicher, dass Sie …  Ja  Nein
    Ihre Nachricht erscheint hier
  • Gehören Sie zu den Ersten, denen das gefällt!

COSCUP 2020 | Rain Wu | Functional verification test framework with Go

  1. 1. Functional verification test framework with Go Rain Wu
  2. 2. About Me Communities Python Go Technical Artist Web Backend Writer Business Economic Negotiation
  3. 3. Agenda - go test - unit test v.s. functional verification test - scenario & requirements - design & implement
  4. 4. go test “testing” package
  5. 5. How go test/testing package do? - user-defined test cases - manage the states - show the results
  6. 6. Unit test cases
  7. 7. Run unit test
  8. 8. If an error occurs…
  9. 9. (t *testing.T)
  10. 10. The document
  11. 11. The source code (release-branch.go1.14)
  12. 12. Unit test
  13. 13. Unit test - Individual functions or packages work correctly - Developer's responsibility
  14. 14. Unit test - But I also run it in CI because they often forget
  15. 15. Functional verification test
  16. 16. Functional verification test - How users use, not how developers develop - Cross packages, or even cross micro-services
  17. 17. Bottleneck - Need to really start the service - Even need infrastructure and environment
  18. 18. Scenario
  19. 19. Test web server’s API via requests ServiceScripts
  20. 20. Some test cases - Find a seat to sit down - Come to the counter to order and pay - Make a reservation
  21. 21. We hope to get the results of all tests at once - Find a seat to sit down - FAILED : no seats left - Come to the counter to order and pay - PASSED - Make a reservation - PASSED
  22. 22. Unless the test beats the service - Find a seat to sit down - FAILED : no seats left - Come to the counter to order and pay - Connection refused - Make a reservation
  23. 23. Advanced information - Find a seat to sit down - Seating area 1F-A : 23/23 - Seating area 1F-B : 17/17 - Seating area 1F-C : 17/17 - Seating area 2F : 0/0 - FAILED : no seats left
  24. 24. Who can run the test QC Backend Frontend PM SRE
  25. 25. Design & Implement
  26. 26. Service Scripts Server to run tests Run test Reaction Order Report
  27. 27. Server to run tests InfrastructureEnvironment Host Test casesAPI endpoints
  28. 28. API endpoints - POST /orders - GET /orders?timestamp>1595721600&timestamp<1595808000 - GET /results?tester=rain - GET /results/002020 - POST /testers - GET /testers
  29. 29. Manage state & collect information
  30. 30. Warning
  31. 31. Server to run tests Host test cases Password Token
  32. 32. Too busy
  33. 33. References - Photos from Unsplash - github.com/golang/go
  34. 34. Thanks for listening ID: Rain Wu

×