Tips .Net

Posted on Updated on


Below is a set of frequently asked questions as part of a development .Net platform associated with TFS infrastructure, this post is also inspired on topics of Best Practise Microsoft:
How to set the distribution of a series of tests as they run?

Define Weighting property of test agent 

How to reuse test cases fairly easily?

Use the Clone feature Test Plan on a root test suite

How to configure an access TFS url for your site?

Using TFS administration console and set the property in the section URL Notification Change URIs

How to recover accidentally deleted files in TFS Source Control?

Go to the Tools section, select Options, and click the link Show deleted items in the Source Control Explorer, right-click and select the option Undelete

How to export a complete test case suites beyond WIQL requests?
Use Apis Test Management, below some snippets to operate.

List the active test plans with filter end date

ITestPlanCollection testPlanCollection = projet.TestPlans.Query("Select * from TestPlan where PlanState = 'Active' AND EndDate < ‘2015-10-22’ ");
Retrieve the results of the execution of a test case

ITestManagementService testManagementService = teamProjectCollection.GetService<ITestManagementService>();

// Get run
IEnumerable<ITestRun> testRunList = testManagementService.QueryTestRuns(string.Format("select * From TestRun where TestRunID={0} AND IsAutomated=0", runId));

// Get first
ITestRun testRunTarget = testRunList.FirstOrDefault();

//Get results
ITestCaseResultCollection restCaseResultCollection = testRunTarget.QueryResults();

How Builds interrupt for a change process and run them later, once the finished modification?

Pausing set the property on the General tab of the Build definition, the builds are accumulated in a queue processing

To Build Not Finished

3 thoughts on “Tips .Net

    การ์ดแต่งงาน said:
    October 9, 2015 at 10:06 pm

    Wow, fantastic blog structure! How long have you ever been running
    a blog for? you made blogging glance easy.
    The overall glance of your website is wonderful, let alone the content material!

    Like

    agen pulau harapan said:
    October 11, 2015 at 12:43 pm

    My partner and I stumbled over here different website and thought I should check things out.
    I like what I see so now i’m following you. Look forward to checking out your web page yet again.

    Like

    Kitchen Decor Ideas said:
    October 11, 2015 at 10:02 pm

    This is very interesting, You are an overly professional blogger.

    I’ve joined your rss feed and look forward to in quest of
    more of your excellent post. Additionally, I’ve shared your web site in my social networks

    Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s