OnRoad Test Management

Welcome to OnRoad Test Management Sign in | Join | Help
in Search

Issues getting statuses to update correctly

Last post 03-05-2010 17:53 by ilpo. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 03-04-2010 23:29

    • dtjensen
    • Top 25 Contributor
    • Joined on 02-23-2010
    • Points 380

    Issues getting statuses to update correctly

    I have the sync tool working when I create a new bug in QC.  It show up in TFS just fine.  But after that, I cannot get anything to update.  I want to update the status in TFS and have it push the update to QC, but I am not sure if there are permissions required that I am not aware of.  But, the change never comes into QC.

    Thanks for any help,

     David

    • Post Points: 20
  • 03-05-2010 7:38 In reply to

    • ilpo
    • Top 10 Contributor
      Male
    • Joined on 06-16-2006
    • Espoo, Finland
    • Points 50,730
    • Juvander Consulting

    Re: Issues getting statuses to update correctly

    Hei

    From TFS to QC, take a look at YapWatcher and DefectWebService logs. There should be entries recorded to tell why this is not happening.

    //Ilpo

    • Post Points: 20
  • 03-05-2010 15:52 In reply to

    • dtjensen
    • Top 25 Contributor
    • Joined on 02-23-2010
    • Points 380

    Re: Issues getting statuses to update correctly

    I was looking in the logs, but there was no entry.  I restarted the services and things started moving again.  Not sure what caused them to hang up.

     Now, I am having an issue using the LDAP lookup.  I get this error in the logs:

    System.Runtime.InteropServices.COMException (0x80005000): Unknown error (0x80005000)
       at System.DirectoryServices.DirectoryEntry.Bind(Boolean throwIfFail)
       at System.DirectoryServices.DirectoryEntry.Bind()
       at System.DirectoryServices.DirectoryEntry.get_AdsObject()
       at System.DirectoryServices.DirectorySearcher.FindAll(Boolean findMoreThanOne)
       at System.DirectoryServices.DirectorySearcher.FindOne()
       at JuvanderCommon.Utilities.ActiveDirectory.DirectoryClass.ResolveUserName(String userid)
       at JuvanderTFS.TfsConnection.AddBugToVSTS(String server, String domain, String project, String errordbid, String defect, DefectClass existingDefect, String configFile, String fieldMapName, String valueMapFile, DateTime& modified, DateTime& previousModification, String workItemType, List`1 fieldUpdateInfo, WorkItemClass existingStoredWorkItem, ProjectMapType projectMapType, Boolean includeAttachments, Boolean allowDefaultValueIfFieldNotValid)
    2010-03-05 08:49:58,880 ERROR YapWatcher.YapWatcherClass (:0) - Failed to update TFS Bug for msg 634033757460919074
    2010-03-05 08:49:59,551 DEBUG YapWatcher.YapWatcherClass (:0) - Work round ended
    2010-03-05 08:49:59,558 DEBUG YapWatcher.YapWatcherClass (:0) - Worker thread done its work...

     So, I was wondering if you could send me (or post) the actual code you are using to query the AD information. I am not sure how to troubleshoot this error without knowing what it's trying to do. 

    David

    • Post Points: 20
  • 03-05-2010 15:58 In reply to

    • ilpo
    • Top 10 Contributor
      Male
    • Joined on 06-16-2006
    • Espoo, Finland
    • Points 50,730
    • Juvander Consulting

    Re: Issues getting statuses to update correctly

    Did you configure LDAP server for this? Just put one Active Directory server like LDAP://my.adserver.company.com. Note the capital LDAP.

     That will start the query from the AD root.

    //Ilpo

    • Post Points: 20
  • 03-05-2010 16:01 In reply to

    • dtjensen
    • Top 25 Contributor
    • Joined on 02-23-2010
    • Points 380

    Re: Issues getting statuses to update correctly

    Yes.  I have LDAP://servername where servername resolves to the environment variable %USERDNSDOMAIN% and I have no filters listed.  The error seems to be communicating with the AD, but just taking an error.

    • Post Points: 20
  • 03-05-2010 16:07 In reply to

    • ilpo
    • Top 10 Contributor
      Male
    • Joined on 06-16-2006
    • Espoo, Finland
    • Points 50,730
    • Juvander Consulting

    Re: Issues getting statuses to update correctly

    Not sure if that will make it.

    Try format of 

    LDAP://DC=my,DC=domain,DC=com

    instead.

    //Ilpo

    • Post Points: 20
  • 03-05-2010 16:55 In reply to

    • dtjensen
    • Top 25 Contributor
    • Joined on 02-23-2010
    • Points 380

    Re: Issues getting statuses to update correctly

    Okay.  That worked.  Thanks. 

     Now, my issue (I think my last issue) is that when the status in QC changes to Closed, TFS seems to reject the update. Here is the log:

    2010-03-05 09:53:12,209 DEBUG JuvanderTFS.TfsConnection (:0) - Handling field 'BG_SUMMARY' into 'Title'
    2010-03-05 09:53:12,210 DEBUG JuvanderTFS.TfsConnection (:0) - Writing value 'Store Mobility - Phase 3 - Ordering - Lows & Outs displays incorrect values in Review Order screen' (IsTreePath=False, ''/'Store Mobility - Phase 3 - Ordering - Lows & Outs displays incorrect values in Review Order screen')
    2010-03-05 09:53:12,210 DEBUG JuvanderTFS.TfsConnection (:0) - Handling field 'BG_SEVERITY' into 'Severity'
    2010-03-05 09:53:12,211 DEBUG JuvanderTFS.TfsConnection (:0) - Writing value '3- Important, Work Around Available' (IsTreePath=False, ''/'3- Important, Work Around Available')
    2010-03-05 09:53:12,211 DEBUG JuvanderTFS.TfsConnection (:0) - Field has value map defined: SeverityTFS2QC
    2010-03-05 09:53:12,211 DEBUG DataLibrary.ValueMapsClass (:0) - ValueMapping found, changing '3- Important, Work Around Available'->'3 - Medium'
    2010-03-05 09:53:12,212 DEBUG JuvanderTFS.TfsConnection (:0) - Handling field 'BG_PRIORITY' into 'Priority'
    2010-03-05 09:53:12,213 DEBUG JuvanderTFS.TfsConnection (:0) - Writing value '' (IsTreePath=False, ''/'')
    2010-03-05 09:53:12,213 DEBUG JuvanderTFS.TfsConnection (:0) - Empty field value with no default value
    2010-03-05 09:53:12,215 DEBUG JuvanderTFS.TfsConnection (:0) - Handling field 'BG_RESPONSIBLE' into 'Assigned To'
    2010-03-05 09:53:12,215 DEBUG JuvanderTFS.TfsConnection (:0) - Writing value 'dmg5jsw' (IsTreePath=False, ''/'dmg5jsw')
    2010-03-05 09:53:12,217 DEBUG JuvanderTFS.TfsConnection (:0) - Handling field 'BG_PROJECT' into 'Area Path'
    2010-03-05 09:53:12,218 DEBUG JuvanderTFS.TfsConnection (:0) - Writing value 'IMS\Store Mobility Phase 3' (IsTreePath=True, 'IMS\Store Mobility Phase 3'/'Store Mobility Phase 3')
    2010-03-05 09:53:12,219 DEBUG JuvanderTFS.TfsConnection (:0) - Handling field 'BG_DEV_COMMENTS' into 'History'
    2010-03-05 09:53:12,219 DEBUG JuvanderTFS.TfsConnection (:0) - Writing value '<html><body>Mcnavish, David <dmg5jsw>, 3/4/2010: new queries provided to verify this issue.
    ________________________________________
    Sankar, Ammu <axs8767>, 3/4/2010:  Based on the new queries provided by David, retested the issue.
    Lows and Outs are working as expected.
    New query is attached for reference.
    Closing the defect.</body></html>' (IsTreePath=False, ''/'<html><body>Mcnavish, David <dmg5jsw>, 3/4/2010: new queries provided to verify this issue.
    ________________________________________
    Sankar, Ammu <axs8767>, 3/4/2010:  Based on the new queries provided by David, retested the issue.
    Lows and Outs are working as expected.
    New query is attached for reference.
    Closing the defect.</body></html>')
    2010-03-05 09:53:12,221 DEBUG JuvanderTFS.TfsConnection (:0) - Handling field 'BG_CLOSING_DATE' into 'Closed Date'
    2010-03-05 09:53:12,221 DEBUG JuvanderTFS.TfsConnection (:0) - Writing value '03/04/2010 00:00:00' (IsTreePath=False, ''/'03/04/2010 00:00:00')
    2010-03-05 09:53:12,222 DEBUG JuvanderTFS.TfsConnection (:0) - Handling field 'BG_STATUS' into 'State'
    2010-03-05 09:53:12,223 DEBUG JuvanderTFS.TfsConnection (:0) - Writing value 'Closed' (IsTreePath=False, ''/'Closed')
    2010-03-05 09:53:12,223 DEBUG JuvanderTFS.TfsConnection (:0) - Field has value map defined: StateStatusQCtoTFS
    2010-03-05 09:53:12,223 DEBUG DataLibrary.ValueMapsClass (:0) - ValueMapping found, changing 'Closed'->'Closed'
    2010-03-05 09:53:12,230 INFO  JuvanderTFS.TfsConnection (:0) - Invalid value 'Closed' for field 'State':'Closed' using default value 'Active' instead.
    2010-03-05 09:53:12,236 DEBUG JuvanderTFS.TfsConnection (:0) - Handling default value into field 'AreaID'
    2010-03-05 09:53:12,239 DEBUG JuvanderTFS.TfsConnection (:0) - Handling field 'BG_RESPONSIBLE' into 'Assigned To'
    2010-03-05 09:53:12,239 DEBUG JuvanderTFS.TfsConnection (:0) - Writing value 'dmg5jsw' (IsTreePath=False, ''/'dmg5jsw')
    2010-03-05 09:53:12,240 DEBUG JuvanderCommon.Utilities.ActiveDirectory.DirectoryClass (:0) - Using LDAP Server:'LDAP://DC=amer,DC=homedepot,DC=com'
    2010-03-05 09:53:12,240 DEBUG JuvanderCommon.Utilities.ActiveDirectory.DirectoryClass (:0) - Trying to resolve user name: dmg5jsw
    2010-03-05 09:53:12,258 DEBUG JuvanderCommon.Utilities.ActiveDirectory.DirectoryClass (:0) - User found
    2010-03-05 09:53:12,259 DEBUG JuvanderCommon.Utilities.ActiveDirectory.DirectoryClass (:0) - name = Mcnavish, David
    2010-03-05 09:53:12,259 DEBUG JuvanderCommon.Utilities.ActiveDirectory.DirectoryClass (:0) - adspath = LDAP://CN=Mcnavish\, David,OU=Corp,OU=Associates,OU=THD Accounts,DC=amer,DC=homedepot,DC=com
    2010-03-05 09:53:12,260 DEBUG JuvanderCommon.Utilities.ActiveDirectory.DirectoryClass (:0) - displayname = Mcnavish, David
    2010-03-05 09:53:12,260 DEBUG JuvanderCommon.Utilities.ActiveDirectory.DirectoryClass (:0) - Found displayName: Mcnavish, David
    2010-03-05 09:53:12,262 DEBUG JuvanderTFS.TfsConnection (:0) - Saving...
    2010-03-05 09:53:12,763 DEBUG JuvanderTFS.TfsConnection (:0) - Save with id 97
    2010-03-05 09:53:12,764 DEBUG YapWatcher.YapWatcherClass (:0) - Modified Date is 3/5/2010 9:53:12 AM vs. 3/5/2010 9:47:44 AM
    2010-03-05 09:53:12,765 DEBUG YapWatcher.YapWatcherClass (:0) - TFS workitem 97 updated
    2010-03-05 09:53:13,204 DEBUG DataLibrary.WorkItemClass (:0) - Updating WorkItem 3/5/2010 9:53:12 AM into 97
    2010-03-05 09:53:13,308 DEBUG YapWatcher.YapWatcherClass (:0) - Deleting msg with id: 634033795746589339
    2010-03-05 09:53:13,879 INFO  YapWatcher.YapWatcherClass (:0) - Msg acknowledged with msg 634033780239076907 bgid 97
    2010-03-05 09:53:14,313 DEBUG YapWatcher.YapWatcherClass (:0) - Work round ended

     But I never see the value updated in TFS.  QC updates with the 'Ackowledged' status though.

    • Post Points: 20
  • 03-05-2010 17:53 In reply to

    • ilpo
    • Top 10 Contributor
      Male
    • Joined on 06-16-2006
    • Espoo, Finland
    • Points 50,730
    • Juvander Consulting

    Re: Issues getting statuses to update correctly

    Private message sent.

    • Post Points: 5
Page 1 of 1 (8 items)