public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonDeviceFarmConfig config = new AmazonDeviceFarmConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonDeviceFarmClient client = new AmazonDeviceFarmClient(creds, config); GetOfferingStatusResponse resp = new GetOfferingStatusResponse(); do { GetOfferingStatusRequest req = new GetOfferingStatusRequest { NextToken = resp.NextToken }; resp = client.GetOfferingStatus(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.NextPeriod) { AddObject(obj); } foreach (var obj in resp.Current) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
public override void Invoke(AWSCredentials creds, RegionEndpoint region, int maxItems) { AmazonDeviceFarmConfig config = new AmazonDeviceFarmConfig(); config.RegionEndpoint = region; ConfigureClient(config); AmazonDeviceFarmClient client = new AmazonDeviceFarmClient(creds, config); ListTestGridProjectsResponse resp = new ListTestGridProjectsResponse(); do { ListTestGridProjectsRequest req = new ListTestGridProjectsRequest { NextToken = resp.NextToken , MaxResult = maxItems }; resp = client.ListTestGridProjects(req); CheckError(resp.HttpStatusCode, "200"); foreach (var obj in resp.TestGridProjects) { AddObject(obj); } }while (!string.IsNullOrEmpty(resp.NextToken)); }
public MainForm(AmazonDeviceFarmClient client) { InitializeComponent(); if (client == null) { MessageBox.Show("You are not Authorized"); } else { _client = client; mainMenu = new MainMenu(); //popUpMenu = new ContextMenu(); //popUpMenu.MenuItems.Add("Hello", new EventHandler(pop_Clicked)); //this.ContextMenu = popUpMenu; MenuItem File = mainMenu.MenuItems.Add("&File"); File.MenuItems.Add(new MenuItem("&New Project", new EventHandler(this.FileNew_clicked), Shortcut.CtrlN)); File.MenuItems.Add(new MenuItem("&New Upload", new EventHandler(this.FileUpload_clicked), Shortcut.CtrlN)); File.MenuItems.Add(new MenuItem("-")); File.MenuItems.Add(new MenuItem("&Exit", new EventHandler(this.FileExit_clicked), Shortcut.CtrlX)); this.Menu = mainMenu; MenuItem View = mainMenu.MenuItems.Add("&View"); View.MenuItems.Add(new MenuItem("&View Project & Run", new EventHandler(this.ViewProject_clicked), Shortcut.CtrlO)); View.MenuItems.Add(new MenuItem("&View Device", new EventHandler(this.ViewDevices_clicked), Shortcut.CtrlShiftD)); this.Menu = mainMenu; mainMenu.GetForm().BackColor = Color.Indigo; } }
public void DeviceFarmGetAccountSettings() { #region to-get-information-about-account-settings-1472567568189 var client = new AmazonDeviceFarmClient(); var response = client.GetAccountSettings(new GetAccountSettingsRequest { }); AccountSettings accountSettings = response.AccountSettings; #endregion }
public void DeviceFarmDeleteUpload() { #region deleteupload-example-1470868363942 var client = new AmazonDeviceFarmClient(); var response = client.DeleteUpload(new DeleteUploadRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:upload:EXAMPLE-GUID-123-456" // You can get the upload ARN by using the list-uploads CLI command. }); #endregion }
public void DeviceFarmListJobs() { #region to-get-information-about-jobs-1471642228071 var client = new AmazonDeviceFarmClient(); var response = client.ListJobs(new ListJobsRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456" // You can get the project ARN by using the list-jobs CLI command. }); #endregion }
public void DeviceFarmDeleteProject() { #region deleteproject-example-1470867374212 var client = new AmazonDeviceFarmClient(); var response = client.DeleteProject(new DeleteProjectRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456" // You can get the project ARN by using the list-projects CLI command. }); #endregion }
public void DeviceFarmDeleteRun() { #region deleterun-example-1470867905129 var client = new AmazonDeviceFarmClient(); var response = client.DeleteRun(new DeleteRunRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456" // You can get the run ARN by using the list-runs CLI command. }); #endregion }
public void DeviceFarmDeleteDevicePool() { #region deletedevicepool-example-1470866975494 var client = new AmazonDeviceFarmClient(); var response = client.DeleteDevicePool(new DeleteDevicePoolRequest { Arn = "arn:aws:devicefarm:us-west-2::devicepool:123-456-EXAMPLE-GUID" // You can get the device pool ARN by using the list-device-pools CLI command. }); #endregion }
public void DeviceFarmDeleteRemoteAccessSession() { #region to-delete-a-specific-remote-access-session-1470971431677 var client = new AmazonDeviceFarmClient(); var response = client.DeleteRemoteAccessSession(new DeleteRemoteAccessSessionRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456" // You can get the remote access session ARN by using the list-remote-access-sessions CLI command. }); #endregion }
public void DeviceFarmGetProject() { #region to-get-a-project-1470975038449 var client = new AmazonDeviceFarmClient(); var response = client.GetProject(new GetProjectRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:project:5e01a8c7-c861-4c0a-b1d5-12345EXAMPLE" // You can get the project ARN by using the list-projects CLI command. }); Project project = response.Project; #endregion }
public void DeviceFarmListOfferingTransactions() { #region to-get-information-about-device-offering-transactions-1472561712315 var client = new AmazonDeviceFarmClient(); var response = client.ListOfferingTransactions(new ListOfferingTransactionsRequest { NextToken = "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE=" // A dynamically generated value, used for paginating results. }); List <OfferingTransaction> offeringTransactions = response.OfferingTransactions; #endregion }
public void DeviceFarmListArtifacts() { #region to-list-artifacts-for-a-resource-1471635409527 var client = new AmazonDeviceFarmClient(); var response = client.ListArtifacts(new ListArtifactsRequest { Type = "SCREENSHOT", Arn = "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456" // Can also be used to list artifacts for a Job, Suite, or Test ARN. }); #endregion }
public void DeviceFarmGetUpload() { #region to-get-information-about-a-specific-upload-1471025996221 var client = new AmazonDeviceFarmClient(); var response = client.GetUpload(new GetUploadRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:upload:EXAMPLE-GUID-123-456" // You can get the test ARN by using the list-uploads CLI command. }); Upload upload = response.Upload; #endregion }
public void DeviceFarmCreateProject() { #region createproject-example-1470862210860 var client = new AmazonDeviceFarmClient(); var response = client.CreateProject(new CreateProjectRequest { Name = "MyProject" // A project in Device Farm is a workspace that contains test runs. A run is a test of a single app against one or more devices. }); Project project = response.Project; #endregion }
public void DeviceFarmGetTest() { #region to-get-information-about-a-specific-test-1471025744238 var client = new AmazonDeviceFarmClient(); var response = client.GetTest(new GetTestRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:test:EXAMPLE-GUID-123-456" // You can get the test ARN by using the list-tests CLI command. }); Test test = response.Test; #endregion }
public void DeviceFarmGetSuite() { #region to-get-information-about-a-test-suite-1471016525008 var client = new AmazonDeviceFarmClient(); var response = client.GetSuite(new GetSuiteRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:suite:EXAMPLE-GUID-123-456" // You can get the suite ARN by using the list-suites CLI command. }); Suite suite = response.Suite; #endregion }
public void DeviceFarmGetRun() { #region to-get-a-test-run-1471015895657 var client = new AmazonDeviceFarmClient(); var response = client.GetRun(new GetRunRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE" // You can get the run ARN by using the list-runs CLI command. }); Run run = response.Run; #endregion }
public void DeviceFarmGetRemoteAccessSession() { #region to-get-a-remote-access-session-1471014119414 var client = new AmazonDeviceFarmClient(); var response = client.GetRemoteAccessSession(new GetRemoteAccessSessionRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456" // You can get the remote access session ARN by using the list-remote-access-sessions CLI command. }); RemoteAccessSession remoteAccessSession = response.RemoteAccessSession; #endregion }
public void DeviceFarmGetJob() { #region getjob-example-1470928294268 var client = new AmazonDeviceFarmClient(); var response = client.GetJob(new GetJobRequest { Arn = "arn:aws:devicefarm:us-west-2::job:123-456-EXAMPLE-GUID" // You can get the job ARN by using the list-jobs CLI command. }); Job job = response.Job; #endregion }
protected IAmazonDeviceFarm CreateClient(AWSCredentials credentials, RegionEndpoint region) { var config = new AmazonDeviceFarmConfig { RegionEndpoint = region }; Amazon.PowerShell.Utils.Common.PopulateConfig(this, config); this.CustomizeClientConfig(config); var client = new AmazonDeviceFarmClient(credentials, config); client.BeforeRequestEvent += RequestEventHandler; client.AfterResponseEvent += ResponseEventHandler; return(client); }
public void DeviceFarmGetDevice() { #region getdevice-example-1470870602173 var client = new AmazonDeviceFarmClient(); var response = client.GetDevice(new GetDeviceRequest { Arn = "arn:aws:devicefarm:us-west-2::device:123EXAMPLE" }); Device device = response.Device; #endregion }
public void DeviceFarmStopRun() { #region to-stop-a-test-run-1472653770340 var client = new AmazonDeviceFarmClient(); var response = client.StopRun(new StopRunRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:run:EXAMPLE-GUID-123-456" // You can get the Amazon Resource Name (ARN) of the test run by using the list-runs CLI command. }); Run run = response.Run; #endregion }
public void DeviceFarmGetDevicePool() { #region getdevicepool-example-1470870873136 var client = new AmazonDeviceFarmClient(); var response = client.GetDevicePool(new GetDevicePoolRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456" // You can obtain the project ARN by using the list-projects CLI command. }); DevicePool devicePool = response.DevicePool; #endregion }
public void DeviceFarmListRuns() { #region to-get-information-about-test-runs-1472582711069 var client = new AmazonDeviceFarmClient(); var response = client.ListRuns(new ListRunsRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:run:5e01a8c7-c861-4c0a-b1d5-5ec6e6c6dd23/0fcac17b-6122-44d7-ae5a-12345EXAMPLE", // You can get the Amazon Resource Name (ARN) of the run by using the list-runs CLI command. NextToken = "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE" // A dynamically generated value, used for paginating results. }); List <Run> runs = response.Runs; #endregion }
public void DeviceFarmListRemoteAccessSessions() { #region to-get-information-about-a-remote-access-session-1472581144803 var client = new AmazonDeviceFarmClient(); var response = client.ListRemoteAccessSessions(new ListRemoteAccessSessionsRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:session:EXAMPLE-GUID-123-456", // You can get the Amazon Resource Name (ARN) of the session by using the list-sessions CLI command. NextToken = "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE=" // A dynamically generated value, used for paginating results. }); List <RemoteAccessSession> remoteAccessSessions = response.RemoteAccessSessions; #endregion }
public void DeviceFarmListSuites() { #region to-get-information-about-suites-1472583038218 var client = new AmazonDeviceFarmClient(); var response = client.ListSuites(new ListSuitesRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:job:EXAMPLE-GUID-123-456", // You can get the Amazon Resource Name (ARN) of the job by using the list-jobs CLI command. NextToken = "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE" // A dynamically generated value, used for paginating results. }); List <Suite> suites = response.Suites; #endregion }
public void DeviceFarmUpdateProject() { #region to-update-a-device-pool-1472653887677 var client = new AmazonDeviceFarmClient(); var response = client.UpdateProject(new UpdateProjectRequest { Name = "NewName", Arn = "arn:aws:devicefarm:us-west-2:123456789101:project:8f75187d-101e-4625-accc-12345EXAMPLE" // You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command. }); Project project = response.Project; #endregion }
public void DeviceFarmRenewOffering() { #region to-renew-a-device-slot-offering-1472648899785 var client = new AmazonDeviceFarmClient(); var response = client.RenewOffering(new RenewOfferingRequest { OfferingId = "D68B3C05-1BA6-4360-BC69-12345EXAMPLE", // You can get the offering ID by using the list-offerings CLI command. Quantity = 1 }); OfferingTransaction offeringTransaction = response.OfferingTransaction; #endregion }
public void DeviceFarmListUploads() { #region to-get-information-about-uploads-1472617943090 var client = new AmazonDeviceFarmClient(); var response = client.ListUploads(new ListUploadsRequest { Arn = "arn:aws:devicefarm:us-west-2:123456789101:project:EXAMPLE-GUID-123-456", // You can get the Amazon Resource Name (ARN) of the project by using the list-projects CLI command. NextToken = "RW5DdDJkMWYwZjM2MzM2VHVpOHJIUXlDUXlhc2QzRGViYnc9SEXAMPLE" // A dynamically generated value, used for paginating results. }); List <Upload> uploads = response.Uploads; #endregion }