pub struct Client(/* private fields */);Implementations§
Source§impl Client
impl Client
Sourcepub fn query(
&self,
organization: impl Into<String>,
project: impl Into<String>,
min_last_updated_date: impl Into<OffsetDateTime>,
max_last_updated_date: impl Into<OffsetDateTime>,
) -> RequestBuilder
pub fn query( &self, organization: impl Into<String>, project: impl Into<String>, min_last_updated_date: impl Into<OffsetDateTime>, max_last_updated_date: impl Into<OffsetDateTime>, ) -> RequestBuilder
Query Test Runs based on filters. Mandatory fields are minLastUpdatedDate and maxLastUpdatedDate.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namemin_last_updated_date: Minimum Last Modified Date of run to be queried (Mandatory).max_last_updated_date: Maximum Last Modified Date of run to be queried (Mandatory, difference between min and max date can be atmost 7 days).
Sourcepub fn list(
&self,
organization: impl Into<String>,
project: impl Into<String>,
) -> RequestBuilder
pub fn list( &self, organization: impl Into<String>, project: impl Into<String>, ) -> RequestBuilder
Get a list of test runs.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project name
Sourcepub fn create(
&self,
organization: impl Into<String>,
body: impl Into<RunCreateModel>,
project: impl Into<String>,
) -> RequestBuilder
pub fn create( &self, organization: impl Into<String>, body: impl Into<RunCreateModel>, project: impl Into<String>, ) -> RequestBuilder
Create new test run.
Arguments:
organization: The name of the Azure DevOps organization.body: Run details RunCreateModelproject: Project ID or project name
Sourcepub fn get_test_run_by_id(
&self,
organization: impl Into<String>,
project: impl Into<String>,
run_id: i32,
) -> RequestBuilder
pub fn get_test_run_by_id( &self, organization: impl Into<String>, project: impl Into<String>, run_id: i32, ) -> RequestBuilder
Get a test run by its ID.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namerun_id: ID of the run to get.
Sourcepub fn update(
&self,
organization: impl Into<String>,
body: impl Into<RunUpdateModel>,
project: impl Into<String>,
run_id: i32,
) -> RequestBuilder
pub fn update( &self, organization: impl Into<String>, body: impl Into<RunUpdateModel>, project: impl Into<String>, run_id: i32, ) -> RequestBuilder
Update test run by its ID.
Arguments:
organization: The name of the Azure DevOps organization.body: Run details RunUpdateModelproject: Project ID or project namerun_id: ID of the run to update.
Sourcepub fn delete(
&self,
organization: impl Into<String>,
project: impl Into<String>,
run_id: i32,
) -> RequestBuilder
pub fn delete( &self, organization: impl Into<String>, project: impl Into<String>, run_id: i32, ) -> RequestBuilder
Delete a test run by its ID.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namerun_id: ID of the run to delete.
Sourcepub fn get_test_run_statistics(
&self,
organization: impl Into<String>,
project: impl Into<String>,
run_id: i32,
) -> RequestBuilder
pub fn get_test_run_statistics( &self, organization: impl Into<String>, project: impl Into<String>, run_id: i32, ) -> RequestBuilder
Get test run statistics , used when we want to get summary of a run by outcome.
Arguments:
organization: The name of the Azure DevOps organization.project: Project ID or project namerun_id: ID of the run to get.
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more