@@ -0,0 +1,1234 @@
+%22%22%22%0ACopyright (c) 2022 The Orbit Authors. All rights reserved.%0AUse of this source code is governed by a BSD-style license that can be%0Afound in the LICENSE file.%0A%22%22%22%0Afrom absl import app%0A%0Afrom core.orbit_e2e import E2ETestSuite%0Afrom test_cases.capture_window import VerifyTracksExist%0Afrom test_cases.connection_window import LoadCapture%0A%0A%22%22%22Verify loading a capture taken by CloudCollector in Orbit using pywinauto.%0A%0ABefore this script is run, Orbit has to be started.%0A%0AThe script requires absl and pywinauto. Since pywinauto requires the bitness of%0Athe python installation to match the bitness of the program under test, it needs%0Ato be run from 64 bit python.%0A%0AThis automation script covers a basic workflow:%0A - load a capture for hello_ggp taken by the CloudCollector from the provided path%0A - verify that the capture contains tracks%0A%22%22%22%0A%0A%0Adef main(argv):%0A    test_cases = %5B%0A        LoadCapture(capture_file_path=%22C:%5C%5CUsers%5C%5Cyrunner%5C%5CDocuments%5C%5COrbit%5C%5Ccaptures%5C%5CCloudCollectorTest.orbit%22),%0A        VerifyTracksExist(track_names=%22hello_ggp_stand*%22, allow_duplicates=True)%0A    %5D%0A    suite = E2ETestSuite(test_name=%22Load CloudCollector Capture%22, test_cases=test_cases)%0A    suite.execute()%0A%0A%0Aif __name__ == '__main__':%0A    app.run(main)%0A

Test loading the capture from CloudCollector (#3710)