tag:blogger.com,1999:blog-15045980.post4855659507592727347..comments2024-03-29T06:15:18.587-07:00Comments on Google Testing Blog: Testing Google's New API InfrastructureMarkohttp://www.blogger.com/profile/16755629501705100354noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-15045980.post-84445148431248171452016-08-29T14:12:59.551-07:002016-08-29T14:12:59.551-07:00Anthony, Blog topic seems hot to me. I am surprise...Anthony, Blog topic seems hot to me. I am surprise that there is so little discussion activities? I believe that its got to be some knowledge available to leverage. Our company has around 20+ services in Amazon cloud. They do interact and do depend on each other. Deployment, upgrade, etc became very difficult to execute. What You suggest to be done in testing environment? <br />To develop Testing infrastructure like WTT (Microsoft) is not practical. It will take years to implement. <br />Please advice.Anonymoushttps://www.blogger.com/profile/16409485642524843933noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-49778315237741026312016-07-19T13:37:49.407-07:002016-07-19T13:37:49.407-07:00It really depends on the focus of your testing. Ju...It really depends on the focus of your testing. Just client functional testing: fake the server. Full system functional/performance testing: real server. There is rarely good reason to load test a client in a client-server system, as clients represent a single node instance of the system.Anthony Vallonehttps://www.blogger.com/profile/12778167230770494358noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-79347230302302747912016-07-19T10:16:11.712-07:002016-07-19T10:16:11.712-07:00Thanks Anthony. We're looking to simulate API...Thanks Anthony. We're looking to simulate APIs in order to test, for example, client code before the real API is ready. The simulator would examine the request and send an appropriate reply back to the client. This provides functional testing. We could also do performance testing on the client side by firing off huge numbers of requests, again without affecting the real server. It gets complicated when you consider the fact that the requests can be HTTP, REST, EJB, etc, and there are multiple ways of creating the simulators themselves (request/response, WSDL, ...). There are a number of vendor products that will do this, in a variety of ways, but I'm interested in learning how large corporations perform simulations. Google is about the best example I could think of, given their size and client API library. Do you know where I can get more information on these best practices? Thank you.Bill Khttps://www.blogger.com/profile/09248668561914492647noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-48066962768724704572016-07-19T09:43:51.813-07:002016-07-19T09:43:51.813-07:00In this case, it was a large end-to-end test, so n...In this case, it was a large end-to-end test, so nothing was simulated. Smaller tests (unit and integration) should use mocks and fakes.Anthony Vallonehttps://www.blogger.com/profile/12778167230770494358noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-82702962144660108962016-07-19T08:17:02.116-07:002016-07-19T08:17:02.116-07:00Do you simulate the APIs, for purposes of either f...Do you simulate the APIs, for purposes of either functional or performance testing? In other words, are you able to make requests from the client library to a simulator, without accessing the live system? I'm curious to learn how you do that, if you do. Thanks.Bill Khttps://www.blogger.com/profile/09248668561914492647noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-27082513809774684882013-04-07T08:49:21.809-07:002013-04-07T08:49:21.809-07:00really cool. thanks for share.really cool. thanks for share.Anonymoushttps://www.blogger.com/profile/08924714850190821178noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-83305517842932521142012-12-12T11:36:57.853-08:002012-12-12T11:36:57.853-08:00Hi Li, The tests are organized in code with clear ...Hi Li, The tests are organized in code with clear comments. At Google, we have an internal service that stores, queries, and provides a UI for looking over the results of all tests, including the log output.Anthony Vallonehttps://www.blogger.com/profile/12778167230770494358noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-52418308092306841072012-12-12T00:37:45.691-08:002012-12-12T00:37:45.691-08:00How are test case organized, in code or other form...How are test case organized, in code or other format? And how about the output/log?Anonymoushttps://www.blogger.com/profile/12547998653363662675noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-8175623503542250662012-08-28T11:34:29.092-07:002012-08-28T11:34:29.092-07:00This was an excellent read. Such an elegant soluti...This was an excellent read. Such an elegant solution to a complex problem. Thank you Anthony!Andrew Nolleyhttps://www.blogger.com/profile/05852414765621979978noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-35490790336768674932012-08-24T16:38:11.027-07:002012-08-24T16:38:11.027-07:00Hi Alec, I just updated the final diagram with imp...Hi Alec, I just updated the final diagram with improved color coding and labels. The boundaries of the SUT, test case, and test infrastructure components should be more clear now. The amount of work was approximately: 80% Test API, 15% Abstraction Library, and 5% Adapter Server. We were able to iterate the development - always a good thing. The first iteration had a few basic API features working, an adapter for one language and one platform, the client abstraction library, and a single test. This became the proof of concept. We were happy with the initial results, so we decided to proceed with the design.Anthony Vallonehttps://www.blogger.com/profile/12778167230770494358noreply@blogger.comtag:blogger.com,1999:blog-15045980.post-6969947744891133892012-08-23T19:29:41.861-07:002012-08-23T19:29:41.861-07:00To be clear, except for the "API Infrastructu...To be clear, except for the "API Infrastructure Service", every piece in the final diagram is part of the testing framework being described here?<br />That seems like an impressive amount of frameworking, but you are solving, rather elegantly, a fairly complicated problem set.<br />In terms of the framework itself, would you be able to estimate how the work breaks down to build and maintain it? Is it 50% Test API, 25% Test Library, etc?<br />Did you have to build the whole thing before you started writing tests, or were you able to write some tests with only some pieces in place, and then iterate towards completion, evolving the tests along the way?<br />Sorry to badger you, but given the generally vast resources, both in machines and people, available at Google, I'm very curious about the process through which something like this would evolve.<br />Thanks!<br />Alec Munrohttps://www.blogger.com/profile/13172977631007255821noreply@blogger.com