Quantcast
Channel: Team Foundation Server - General forum
Viewing all 6687 articles
Browse latest View live

How to run cucumber e2e tests in VSTS hosted agent

$
0
0

Hello,

We use Cucumber scenario's to perform e2e tests with Protractor against our Angular 2.0 single page application.

For the test to run, we execute the `ng serve` command in a console to host the angular application on localhost:4200 and we use `ng e2e` command in another console to run the tests against the angular application (using Selenium webdriver instance that connects to localhost:4200).

Can we run the same tests in VSTS build process using a hosted agent? Would we than start two steps that both execute commands inside their own console? Or how can we perform this? 

Thanks

Ted


TFS Server 2015, problem with Web Access URL, not able to view all the data

$
0
0

Hi all,

I recently install TFS Server 2015 and I have a problem with Web Access URL.

When I try from internet explorer 11 (and other browsers) the link http://mydomain:8082/tfs/ I get a blank page with only the blue line with title "visual studio online" and account name.

And I am not able to view anything of other data (such us Visual Studio Online).

What did I miss on installation? Any help on this?

 

Some details:

Windows Server 2012 R2

IIS 8.5

TFS 2015

Visual studio 2015

Internet Explorer 11

Thank you in advance.

 

How to show Impediments linked to a Bug\Product Backlog Item in TFS 2013 Backlog Items Board?

$
0
0
Hi,

We are able to add impediments and link it to existing product backlog item\bug. However, these impediments are not visible on the backlog board page.

Is it possible to display the impediments linked to bug\product backlog items in the Backlog items board page? 

Thanks,
Vishnu



Bug in TFS 2017 Collection Upgrade?

$
0
0

hi, we are doing a "practice upgrade" from TFS 2015 RTM to TFS 2017, (for the second time), and seem to be running into a bug that crashes a collection upgrade.   Bear in mind that there has only been time, so far to reproduce this issue twice, and I will describe what seems to be the steps to reproduce it.

In both run-throughs, (using different collections, but getting the same error in the log when the crash occurred), it only occurred on the _first_ collection upgrade, and I suspect that you have to follow a particular pattern of upgrading in order to get the crash.    Since we always follow this pattern it has happened to us twice now.

First, establish a TFS 2015 RTM server with a few collections.   When you upgrade to 2017, follow this pattern:

While on the old software detach all collections.  Remove the application tier.

Install TFS 2017.  

Configure the application Tier and let 2017 upgrade your configuration database.

Attach the first collection.   Around steps 22-30 it has crashed with the following error at the tail end of the log:

[13:13:45.863] +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
[13:13:45.863] Executing step: Add the User Extension License for the attached collection
[13:13:45.863]   Executing step: 'Add the User Extension License for the attached collection' ExtensionLicensing.CopyUserExtensionLicenseToConfigDb (693 of 994)
[13:13:45.880]   Original Server Id: 1d9e3916-d1e4-4295-9bdd-2327b213e27b, Current Server Id : 1d9e3916-d1e4-4295-9bdd-2327b213e27b
[13:13:45.880]   Copy user extension license data back to configuration database from snapshot
[13:13:45.897]   Create temp user extension license table for attach
[13:13:46.100]   Target partition Id: 1, Collection Id: d69b9ea1-a591-44d2-adb9-c622ab8e2b2c
[13:13:46.113]   Getting tables. Table filter: tbl_UserExtensionLicense
[13:13:46.113]   Getting indexes. Table filter: tbl_UserExtensionLicense
[13:13:46.520]   Found 0 indexes. Table filter: tbl_UserExtensionLicense
[13:13:46.757]   Found 0 tables. Table filter: tbl_UserExtensionLicense
[13:13:46.757]   Getting tables. Table filter: tbl_TempUserExtensionLicense
[13:13:46.757]   Getting indexes. Table filter: tbl_TempUserExtensionLicense
[13:13:47.413]   Found 0 indexes. Table filter: tbl_TempUserExtensionLicense
[13:13:47.627]   Found 1 tables. Table filter: tbl_TempUserExtensionLicense
[13:13:47.643]   [Error] Object reference not set to an instance of an object.
[13:13:47.660]   System.NullReferenceException: Object reference not set to an instance of an object.
[13:13:47.660]      at Microsoft.VisualStudio.Services.Licensing.OnPremPlugins.ExtensionLicensingStepPerformer.BulkCopyUserExtensionLicense(ServicingContext servicingContext, IVssRequestContext sourceRequestContext, IVssRequestContext targetRequestContext, Int32 targetPartitionId, Guid collectionId, String targetTableName)
[13:13:47.660]      at Microsoft.VisualStudio.Services.Licensing.OnPremPlugins.ExtensionLicensingStepPerformer.CopyUserExtensionLicenseToConfigDb(IVssRequestContext targetRequestContext, ServicingContext servicingContext)
[13:13:47.660]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformHostStep(String servicingOperation, ServicingOperationTarget target, IServicingStep servicingStep, String stepData, ServicingContext servicingContext)
[13:13:47.660]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation, ServicingOperationTarget target, IServicingStep servicingStep, String stepType, String stepData, ServicingContext servicingContext)
[13:13:47.660]      at Microsoft.TeamFoundation.Framework.Server.TeamFoundationStepPerformerBase.PerformStep(String servicingOperation, ServicingOperationTarget target, String stepType, String stepData, ServicingContext servicingContext)
[13:13:47.660]      at Microsoft.TeamFoundation.Framework.Server.ServicingStepDriver.PerformServicingStep(ServicingStep step, ServicingContext servicingContext, ServicingStepGroup group, ServicingOperation servicingOperation, Int32 stepNumber, Int32 totalSteps)
[13:13:47.660] Step failed: Add the User Extension License for the attached collection. Execution time: 1797 milliseconds.
[13:13:47.660]   [StepDuration] 1.7979332
[13:13:47.673]   [GroupDuration] 40.3609754
[13:13:47.673]   [OperationDuration] 40.867523
[13:13:47.753]   Clearing dictionary, removing all items.

In the first run-through, I restored the collection from backup, and created a new TFS_Configuration database.   Then when I attached, the collection upgraded with no issue.

I  have just discovered that all of my collections are crashing with this same error no matter how many times I restore the databases and attempt the upgrade.   We are in trouble.   At present I know of no way to get around this anymore other than possibly to recreate the TFS_Configuration database.

I'll have to try that to see if it works.   However, it leaves me unsure about possible permissions issues that might become unset as a result of doing this.

Any help would be appreciated.

Can you give me any insights or work-arounds on this issue?

Regards,

Steve Sims

Release to Windows 2012

$
0
0

I have got my build working nicely, and would now like to deploy the outputs to a Windows 2012 box.

The artefacts I need to deploy are:

1) Some static files

2) A WebApi Project

3) Execute a SQL Script on the Windows 2012 box.

Firstly, is this possible.  And secondly what should I be using to achieve these tasks?

Many thanks in advance.

TFS with SSAS Models (SQL Server Analysis Services)

$
0
0

The requirement is to setup TFS environment for a SSAS tabular model project. Basically, multiple developers will be using a same solution and build models and integrate it as a single solution. Is it possible for SSAS Tabular Models to be worked by multiple developers in TFS at the same time?
Is there any work around to have multiple models in a single tabular solution?
How to integrate multiple models into a single model?<o:p></o:p>

Any pointers would be of great help!<o:p></o:p>


Karthick S

Power BI PBIX Files with TFS

$
0
0

How can we use TFS with Power BI PBIX files?

I would like to have multiple Power BI developers to work in the same PBIX file.


Karthick S

TFS15. Paste links problems

$
0
0

When i tried to paste link with cyrillic URLEncoded parameter I cannot cannot same Workitem. In Chrome console got some error

Example of URL: http://MyUrl.com?code=%c7%c7%cf
This URL works fine: http://MyUrl.com?code=ЗЗП

URL is valid and successfully opens in browsers.

If you first enter the text, and then paste the link to save WorkItem, got empty discussion and history:

Previous version works fine.



How to use nested collection to add family details of an employee?

$
0
0

I am developing ASP.Net MVC 5 application in Visual Studio 2012 using Entity Framework with database first approach. In the application, I want to create a user form for capturing Employee data. For the purpose, I have the following tables:

  1.  Employee (ID, Name, DOB, Address, Mobile....)
  2. Wife(Id, EmpId, DOB, Status)
  3. Daughter (Id, EmpId, DOB, Status)
  4. Son (Id, EmpId, DOB, Status)

It can be seen that there is a one-to-many relationship between Employee => Wife, Employee => Daughter and Employee => Son as an Employee can have several wives, daughters or sons.

What I want is to create an input form where Employee data along with his family data can be submitted at once. In order to provide facility to enter multiple wives, daughters or sons, taking idea from http://www.itorian.com/2013/04/nested-collection-models-in-mvc-to-add.html , I created an input form where separate view for wife, daughter, and son is called upon using EditorFor() method. These views are placed inside a folder named EditorTemplate. These views are provided with Add and Remove links .

The Add link loads the required view as many times as required. While Remove link removes the collection if not required. But the problem is that the HttpPost ActionResult saves Employee data to the database but does save the related data into the wife, daughter or son tables. 

The Controller:

[HttpPost]
        [ValidateAntiForgeryToken]
        public ActionResult Create([Bind(Include="PensionerId,Name,Gender,Cast,PNo,PPO,Address1,Address2,ContactNo,PAN,Adhar,Email,DOB,DOA,DOC,DOR,Handicap,Disease,IdMark1,IdMark2,DivisionId,DesignationId,OriginId,ReligionId,BloodGrp,ImageName,ImagePath,CreatedDate,UpdatedDate")] Pensioner pensioner)
        {
            if (ModelState.IsValid)
            {
                foreach (Wife wife in pensioner.Wives.ToList())
                {
                    if (wife.DeleteMe == true)
                    {
                        // Delete Wives which are marked to be removed
                        pensioner.Wives.Remove(wife);
                    }

                    else
                    {
                        pensioner.Wives.Add(wife);
                    }
                }
                foreach (Daughter daughter in pensioner.Daughters.ToList())
                {
                    if (daughter.DeleteMe == true)
                    {
                        // Delete Daughters which are marked to be removed
                        pensioner.Daughters.Remove(daughter);
                    }

                }

                pensioner.CreatedDate = DateTime.Now;
                db.Pensioners.Add(pensioner);
                db.SaveChanges();

                return RedirectToAction("Index");
            }

            ViewBag.DesignationId = new SelectList(db.Designations, "DesignationId", "Name", pensioner.DesignationId);
            ViewBag.DivisionId = new SelectList(db.Divisions, "DivisionId", "Name", pensioner.DivisionId);
            ViewBag.OriginId = new SelectList(db.Origins, "OriginId", "Name", pensioner.OriginId);
            ViewBag.ReligionId = new SelectList(db.Religions, "ReligionId", "Name", pensioner.ReligionId);
            return View(pensioner);
        }

Further, I have also noticed that the nested collections are lost in the event when data validation fails.

Therefore, please suggest me the right way of implementing nested collection for adding multiple related data.

Regards,

Arun Khatri

TFS 2017 and SharePoint 2016

$
0
0

Hi Folks,

  I have a TFS 2017 installation and a SharePoint 2016 installation.  I am trying to configure the extensions for SharePoint products.  When I run the readiness checks I get a TF255356: SharePoint must be installed and configured on this machine.. error.

SharePoint 2016 is configured and running on the machine and running with no issues.  The log files shows:-

- VerifySharePointInstalled (VerifyNode) : Verifying SharePoint is installed
   IsInstalled = False
   SevereWarningPrompt = null

   - VerifySharePointProvisioned (VerifyNode) : Verifying that SharePoint has been configured.
    IsProvisioned = False
    SevereWarningPrompt = null

But under this it is able to detect that the user is a SharePoint admin and also that the SharePoint Central Administration Pool Identity and URL is set.

Does anyone have any ideas or can point me in the direction of updated documentation for TFS2017 that shows how to get it working with SharePoint?   

Regards

Andy

TFS Board Consolidation with Multiple Projects

$
0
0
We are using TFS 2012 in which we are having multiple projects. As far as I know, the board visibility is limited to one project on its current sprint. Is there any possibility/addin to consolidate the TFS board using multiple projects ?

Have a dynamic Cluster Connection for the Service Fabric deploy step

$
0
0

Good day. I am trying to have a dynamic Cluster Connection used based on a build variable (URL, Name, or anything). If I need to setup all the connections ahead of time and then just use the name that is fine but when ever I put $(VARIABLE) in the Cluster Connection field for the Service Ramp Deployment step I get an error: ##[error]Required: 'htebc9' service endpoint URL  even though the htebc9 connection is defined.

Any help would be very helpful, otherwise I will just need to setup a bunch of builds.


issues with TFS upgrade to 2017

$
0
0

Hi, 

We were using TFS 2015 (update 3) and we migrated to the new version TFS 2017. We see the new navigation bar  , but other than that we don't see the new WI forum design, the new WI discussion area, the following feature...I go over the new features you published of TFS 2017 and I didn't see a lot of them in the version we installed. 

Is this the final version or we should wait for the release of the complete version? 

What are the reason for this difference in the version we installed to the version you published? and what we can do to solve this?

Your help will be highly appreciated,

Betty   

TFS: Multiple customer servers?

$
0
0

Hi Guys/Girls

We are contractors specializing in SharePoint and working with many different customers. In order to make our lives easier and to help prevent redeveloping for the same problem multiple times, we have what we call a “Common” solution. This solution contains all our helper classes and reusable objects so we can just reference them.

The problem with the “Common” solution is that we need to give the code to multiple customers. Meaning, we need to check this one solution into multiple TFS servers for multiple customers. Or more specifically, we need to keep changes and updates for this solution in sync across multiple TFS servers as we continue to develop.

I know it would not be practical to automatically sync the solution to multiple TFS servers. The VPN connections alone will make this unrealistic. But there has to be a better way than manually binding and unbinding to multiple servers.

We are only using the “Common” solution at a few clients currently and this is already proving to be a problem. As we start using this for more customers, it will start becoming unmaintainable very quickly.

Anyone else have this problem? And hopefully a solution? J

Group protected by Password

$
0
0
How to create Group protected by Password, so only the member that are attached to the group (No Admin Etc.) can see the group while using a password to <g class="gr_ gr_26 gr-alert gr_spell gr_run_anim ContextualSpelling ins-del multiReplace" data-gr-id="26" id="26">logi</g>n?

TF221122: An error occurred running job Test Management Warehouse Sync for team project collection or Team Foundation server DefaultCollection.

$
0
0
TF53010: The following error has occurred in a Team Foundation component or extension:
Date (UTC): 11/29/2016 4:10:24 AM
Machine: ApplicationTier1
Application Domain: TfsJobAgent.exe
Assembly: Microsoft.TeamFoundation.Framework.Server, Version=14.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a; v4.0.30319
Service Host: 
Process Details:
  Process Name: TfsJobAgent
  Process Id: 1848
  Thread Id: 7676
  Account name: TFSSERVICEACCOUNT

Detailed Message: TF221122: An error occurred running job Test Management Warehouse Sync for team project collection or Team Foundation server DefaultCollection.
Exception Message: '', hexadecimal value 0x1F, is an invalid character. (type ArgumentException)
Exception Stack Trace:    at System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize)
   at System.Xml.XmlEncodedRawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd)
   at System.Xml.XmlEncodedRawTextWriter.WriteString(String text)
   at System.Xml.XmlWellFormedWriter.WriteString(String text)
   at Microsoft.TeamFoundation.Warehouse.WarehouseBatchedDataAccessComponent.FormatDimensionMemberXml(Dimension dimension, DimensionMember dimensionMember, Boolean includeRowNumbers, Int32 rowNumber, XmlWriter writer)
   at Microsoft.TeamFoundation.Warehouse.WarehouseBatchedDataAccessComponent.FormatDimensionMembersXml(Dimension dimension, IEnumerable`1 members, Boolean includeRowNumbers)
   at Microsoft.TeamFoundation.Warehouse.WarehouseBatchedDataAccessComponent.SaveDimensionMembers(Dimension dimension, IEnumerable`1 members, Boolean allowUpdate)
   at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.Batch.SaveDimensions(IWarehouseBatchedDataAccessComponent batch, WarehouseConfig config)
   at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.SaveBatchesToWarehouse()
   at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.ProcessIntegratedResults(WarehouseRowVersionQueryDelegate wqd, String highWaterMarkProperty, String processLimitProperty, Int32 defaultLimit)
   at Microsoft.TeamFoundation.TestManagement.Warehouse.TeamTestWarehouseAdapter.MakeDataChanges()
   at Microsoft.TeamFoundation.Warehouse.WarehouseSyncJobExtension`1.MakeDataChanges(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, String& resultMessage)
   at Microsoft.TeamFoundation.Warehouse.WarehouseSyncJobExtension`1.RunInternal(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage)
   at Microsoft.TeamFoundation.Warehouse.WarehouseJobExtension.Run(IVssRequestContext requestContext, TeamFoundationJobDefinition jobDefinition, DateTime queueTime, String& resultMessage)



Any ideas on how i can progress this, or at least identify what is the root cause of the failure?

 

Ragards,
Sourabh J.

TFS 2013 , create a task by email

$
0
0

Hi there,

Can I create a task by a email or outlook task? 

Here sometimes , pm still like to use email to inform some information, can I just sync some email to TFS  as task while needed?

/Jou   


Jou Chen

TFS JIRA Integration

$
0
0

Hi All

I need help on TFS-JIRA integration. Can you please suggest me the tools (Microsoft Suggested) for TFS and JIRA synchronization, so that the comments and workflow remain updated on both platforms.

Thanks

Atul

TFS 15 RC2 check in issues

$
0
0

Hi,

I have a problem with TFS 15 RC2. We did an upgrade from TFS 2015 and after few checkins to the TFS VCS, the checkin themselfs started aggregating work flow links. For example:

Check-in 1
- Task 1
- Code review 1

Check-in 2
-Task 2
-Code review 2
-Task 1
-Code review 1

Check-in 3
-Task 3
-Code review 3
-Task 2
-Code review 2
-Task 1
-Code review 1

and so on, there are more and more links with each new chechins, up the the point where we have 50 links noew in a single chack-in.

Could this be an issue of that TFS has a bug in RC2 version? Do you have any ideas how to fix this?

Regards.

Associated changes with a build

$
0
0

Consider this case in TFS 2015:

- Have to folders A and B in Source control. A contains A.txt and B contains B.txt

- Create a new build, with $/ProjectName/A/ mapped under Repository.

Do the following:

- Modify A.txt and trigger a build.

   - Associated changes is the change to A.txt. This is expected.

- Modify B.txt and trigger a build.

   - No associated changes This is expected.

- Modify A.txt and B.txt in the same changeset and trigger a build.

   - Associated changes is the change to A.txt and B. This is expected.

- Modify A.txt in a changeset and then modify B.txt in a separate changeset and trigger a build.

   - Associated changes is the change to A.txt AND the change to B.txt. This is NOT expected, only change to A.txt should be listed.

Our problem is that we have 20 products, each in their own subfolder. Since each build associates every single change in source control since the last build, as long as there is at least one change to the product, the list of change is largely irrelevant.

Is there any way to change this behavior (except for creating a Team project for every product, which we do not want to do)

I have tested this in VS Team Services, and there it works as expected.

Viewing all 6687 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>