다음을 통해 공유


tcm을 사용하여 필드 매핑 내보내기 및 가져오기

제공된 형식으로 매핑되는 XML 파일을 가져오고 내보내려면 다음 tcm 명령을 사용합니다.

  • tcm fieldmapping /import

  • tcm fieldmapping /export

참고

fieldmapping 옵션은 Visual Studio 2012.2 이상에서만 사용할 수 있습니다.

tcm fieldmapping /import /type: typeofmapping /mappingfile: path /collection:CollectionURL /teamproject:project [/login:username,[password]]

tcm fieldmapping /export /type: typeofmapping /mappingfile: path /collection:CollectionURL /teamproject:project [/login:username,[password]]

매개 변수

매개 변수

설명

/type: typeofmappingfile

수행해야 할 내보내기/가져오기 요구에 대한 형식을 지정합니다.

형식: resolutiontype, bug, failuretype.

예상 값: resolutiontype.

/mappingfile: path

가져오기/내보내기에 대한 파일 이름을 포함하는 전체 경로를 지정합니다.

가져오기 옵션의 경우 파일이 있는지 확인하고 내보내기 옵션의 경우 파일이 없는지 확인하십시오.

/collection:CollectionURL

팀 프로젝트 컬렉션의 URI를 지정합니다. URI의 형식은 http://ServerName:Port/VirtualDirectoryName/CollectionName입니다.

가상 디렉터리를 사용하지 않는 경우 URI 형식은 다음과 같습니다.

http://ServerName:Port/CollectionName

/teamproject:project

자동화된 테스트를 가져올 테스트 계획이 들어 있는 팀 프로젝트의 이름입니다.

/login:username,[password]

선택 사항입니다. Team Foundation Server에 대한 응용 프로그램 계층 서버에 로그온한 사용자 및 명령 실행 권한을 가지고 있는 사용자의 이름과 암호를 지정합니다. 사용자의 Windows 자격 증명에 적절한 권한이 없는 경우, 기본 인증을 사용하는 경우 또는 도메인에 연결되지 않은 경우 이 옵션을 사용할 수 있습니다.

Visual Studio Online에 로그인하려면 아래 나와 있는 /allowalternatecredentials를 사용해야 합니다.

/allowalternatecredentials

Visual Studio Online에 연결할 때는 /login 매개 변수 외에도 이 플래그를 지정해야 합니다. 이 플래그는 Visual Studio 2013 업데이트 4 이상을 설치한 경우에만 사용할 수 있습니다.

XML 필드 매핑 파일 가져오기 및 내보내기

다음 예제는 Visual Studio 명령 프롬프트를 시작했다고 가정합니다.

이렇게 하려면 시작을 선택하고 모든 프로그램, Microsoft Visual Studio 2012, Visual Studio Tools를 차례로 가리킨 다음 개발자 명령 프롬프트를 선택합니다.

명령 프롬프트가 <drive>:\Program Files\Microsoft Visual Studio 11.0\VC 폴더에서 열립니다.

테스트 프로젝트에서 빌드된 어셈블리를 포함하는 폴더로 디렉터리를 변경합니다.

다음 명령은 지정된 XML 파일에서 필드 매핑을 DinnerNow 팀 프로젝트로 가져옵니다.

tcm fieldmapping /import /type:resolutiontype /mappingfile:<drive>\dir\sudir\filetoimport.xml /collection:http://<Team Foundation Server Name>:8080/tfs/<team project collection name>
/teamproject:DinnerNow

다음 명령은 DinnerNow 팀 프로젝트에서 필드 매핑을 내보냅니다.

tcm fieldmapping /export /type: resolutiontype /mappingfile:<drive>\dir\sudir\filetoexport.xml /collection:http://<Team Foundation Server Name>:8080/tfs/<team project collection name>
/teamproject:DinnerNow

참고 항목

개념

명령줄에서 TCM 사용