当前位置: 首页>>代码示例>>C#>>正文


C# XMLParameter.GenerateXML方法代码示例

本文整理汇总了C#中PAS.AutoTest.PasATCore.XMLParameter.GenerateXML方法的典型用法代码示例。如果您正苦于以下问题:C# XMLParameter.GenerateXML方法的具体用法?C# XMLParameter.GenerateXML怎么用?C# XMLParameter.GenerateXML使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在PAS.AutoTest.PasATCore.XMLParameter的用法示例。


在下文中一共展示了XMLParameter.GenerateXML方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: createRadioLogEntry

 public XMLResult createRadioLogEntry(XMLParameter radioLogEntryInfoXml)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("createRadioLogEntry", new object[] { radioLogEntryInfoXml.GenerateXML() }));
       return this.lastResult;
 }
开发者ID:Erkan-Yilmaz,项目名称:AutomationTestFramework,代码行数:5,代码来源:RadiologService.cs

示例2: createPresentationState

 public XMLResult createPresentationState(string imageInternalID, XMLParameter presentationState)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("createPresentationState", new object[] { imageInternalID, presentationState.GenerateXML() }));
     return this.lastResult;
 }
开发者ID:shilixing,项目名称:AutomationTestFramework,代码行数:5,代码来源:PresentationStateService.cs

示例3: Run

        public override void Run()
        {
            string newPSId = string.Empty;
            string setPSInfoString = string.Empty;
            string getPSInfoString = string.Empty;
            PresentationStateService psService = new PresentationStateService();

            try
            {
                //create a new patient and import a new image to get a new ps id.
                string newPatientId = CommonLib.CreatePatient();
                ImportService import = new ImportService();
                XMLResult r = import.importObject(newPatientId, string.Empty, @"c:\PASPerformance\001.png", null, true, string.Empty);
                newPSId = r.MultiResults[1].GetParameterValueByIndex(0);
                XMLParameter psId = new XMLParameter("presentationstate");
                psId.AddParameter("internal_id", newPSId);
                getPSInfoString = psId.GenerateXML();
                XMLParameterCollection c = new XMLParameterCollection();
                c.Add(psId);
                setPSInfoString = psService.getPresentationStateInfo(c).ArrayResult.GenerateXML();
            }
            catch (Exception ex)
            {
                LogRecordType lr = new LogRecordType();
                lr.FunctionName = this.mFunctionName;
                lr.Lable = this.mLabel;
                string innerText = ex.InnerException == null ? string.Empty : ex.InnerException.Message;
                lr.Message = ex.Message + innerText == string.Empty ? string.Empty : "(" + innerText + ")";
                lr.Passed = false;

                Log.AddRecord(lr);

                this.RiseSingleCallCompleteEvent(lr.ResponseTime, lr.Passed, true);
                this.RiseTestCaseCompleteEvent();

                this.mExecuted = this.mRepeat;
                this.mFailed = this.mRepeat;
                return;
            }

            double userCaseResponse=0;

            for (int i = 1; i <= this.mRepeat; i++)
            {
                LogRecordType lr = new LogRecordType();
                lr.Lable = this.mLabel;
                lr.FunctionName = this.mFunctionName;

                try
                {
                    //get ps info
                    XMLResult getResult=new XMLResult (psService.InvokeMethod ("getPresentationStateInfo", new object []{getPSInfoString }));

                    //if get presentation infor failed.
                    if (getResult.IsErrorOccured)
                    {
                        lr.Message = "Get PS info faild. Message: " + getResult.Message;
                        lr.ResponseTime = psService.ResponseTime;
                        lr.Passed = false;
                        Log.AddRecord(lr);
                        this.mFailed++;
                        continue;
                    }
                    else  //if get ps info successed
                    {
                        userCaseResponse = psService.ResponseTime;
                    }

                    //set ps info
                    XMLResult setResult = new XMLResult(psService.InvokeMethod("setPresentationStateInfo", new object[] { setPSInfoString, newPSId}));

                    //if set ps info failed
                    if (setResult.IsErrorOccured)
                    {
                        lr.Message = "Set PS info failed. Message: " + setResult.Message;
                        lr.ResponseTime = psService.ResponseTime;
                        lr.Passed = false;
                        Log.AddRecord(lr);
                        this.mFailed++;
                        continue;
                    }
                    else  //if set ps info successed.
                    {
                        userCaseResponse += psService.ResponseTime;
                    }

                    lr.ResponseTime = userCaseResponse;
                    this.ExecutedTime += userCaseResponse;
                }
                catch (Exception ex)
                {
                    this.mFailed++;
                    lr.Passed = false;
                    string innerText = ex.InnerException == null ? string.Empty : ex.InnerException.Message;
                    lr.Message = ex.Message + innerText == string.Empty ? string.Empty : "(" + innerText + ")";
                }

                this.mExecuted = i;
                Log.AddRecord(lr);

//.........这里部分代码省略.........
开发者ID:Manivannan-ezhumalai,项目名称:AutomationTestFramework,代码行数:101,代码来源:GetSetPSInfo.cs

示例4: createAnalysis3D

 public XMLResult createAnalysis3D(string p01_instanceUID, XMLParameter p02_xmlAnalysis3DInfo)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("createAnalysis3D", new object[] { p01_instanceUID, p02_xmlAnalysis3DInfo.GenerateXML() }));
     return this.lastResult;
 }
开发者ID:Manivannan-ezhumalai,项目名称:AutomationTestFramework,代码行数:5,代码来源:Analysis3DService.cs

示例5: Run_WorkFlow_CSIOpenImageAndClose_Case980


//.........这里部分代码省略.........

                        SaveRound(r);
                        break;
                    }
                    else
                    {
                        pListObjectForAnalysis.Result = TestResult.Pass;

                        System.Diagnostics.Debug.Print("Call listObject to get analysis info succeed:");
                        pListObjectForAnalysis.Outputs.AddParameter("listObject", "listObject to get analysis", listObjectForAnalysisResult.Message);
                    }
                    #endregion

                    string analysisId = null;
                    analysisId = listObjectForAnalysisResult.SingleResult;

                    if (analysisId == null || analysisId == string.Empty)
                    {
                        // Below Step are excuted when there is no analysis before

                        #region Step 13: createAnalysis
                        CheckPoint pCreateAnalysis = new CheckPoint("createAnalysis", "Step 13: call createAnalysis to create new analysis");
                        r.CheckPoints.Add(pCreateAnalysis);

                        XMLResult createAnalysisResult = new XMLResult();

                        XMLParameter analysisXml = new XMLParameter("analysis");
                        XMLParameterCollection uidsXml = new XMLParameterCollection();
                        XMLParameter presentationStateUids = new XMLParameter("presentationstate");
                        XMLParameter fmsUids = new XMLParameter("fms");
                        uidsXml.Add(presentationStateUids);
                        uidsXml.Add(fmsUids);

                        createAnalysisResult = analysisService.createAnalysis(analysisXml.GenerateXML().ToString(), true, true, patientUID, null, uidsXml);
                        // public XMLResult createAnalysis(string analysisXml, bool current, bool currentSpecified, string patientInternalID, string thumbnail, XMLParameterCollection uidsXml);
                        if (createAnalysisResult.IsErrorOccured)
                        {
                            System.Diagnostics.Debug.Print("Call createAnalysis to create analysis fail:");
                            pCreateAnalysis.Outputs.AddParameter("createAnalysis", "createAnalysis to create analysis", createAnalysisResult.Message);

                            SaveRound(r);
                            break;
                        }
                        else
                        {
                            System.Diagnostics.Debug.Print("Call createAnalysis to create analysis succeed:");
                            pCreateAnalysis.Outputs.AddParameter("createAnalysis", "createAnalysis to create analysis", createAnalysisResult.Message);
                        }
                        #endregion

                        #region Step 14: Call AnalysisService.setAnalysisInfo to set the analysis info
                        CheckPoint pSetAnalysisInfo = new CheckPoint("setAnalysisInfo", "Step 14: call setAnalysisInfo to set the analysis info");
                        r.CheckPoints.Add(pSetAnalysisInfo);

                        XMLResult setAnalysisInfoResult = new XMLResult();

                        analysisId = createAnalysisResult.MultiResults[0].GetParameterValueByName("internal_id");

                        setAnalysisInfoResult = analysisService.setAnalysisInfo(analysisId, setAnalysisInfoParam);

                        if (setAnalysisInfoResult.IsErrorOccured)
                        {
                            System.Diagnostics.Debug.Print("Call setAnalysisInfo to set analysis info fail:");
                            pSetAnalysisInfo.Outputs.AddParameter("setAnalysisInfo", "setAnalysisInfo to set analysis info", setAnalysisInfoResult.Message);

                            SaveRound(r);
开发者ID:Manivannan-ezhumalai,项目名称:AutomationTestFramework,代码行数:67,代码来源:WorkFlow.cs

示例6: setAnalysisInfo

 public XMLResult setAnalysisInfo(string analysisInternalID, XMLParameter indexedInfo)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("setAnalysisInfo", new object[] { analysisInternalID, indexedInfo.GenerateXML() }));
     return this.lastResult;
 }
开发者ID:Erkan-Yilmaz,项目名称:AutomationTestFramework,代码行数:5,代码来源:AnalysisService.cs

示例7: openObjects

 public XMLResult openObjects(XMLParameter objectInternalIDs)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("openObjects", new object[] { objectInternalIDs.GenerateXML ()}));
     return this.lastResult;
 }
开发者ID:Manivannan-ezhumalai,项目名称:AutomationTestFramework,代码行数:5,代码来源:ApplicationService.cs

示例8: setAsynAcqPatientInfo

 public XMLResult setAsynAcqPatientInfo(XMLParameter asyncAcqPatientInfo)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("setAsynAcqPatientInfo", new object[] { asyncAcqPatientInfo.GenerateXML() }));
     return this.lastResult;
 }
开发者ID:Manivannan-ezhumalai,项目名称:AutomationTestFramework,代码行数:5,代码来源:AcquisitionService.cs

示例9: startAcquisition

 public XMLResult startAcquisition(XMLParameter acqInfo)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("startAcquisition", new object[] { acqInfo.GenerateXML() }));
     return this.lastResult;
 }
开发者ID:Manivannan-ezhumalai,项目名称:AutomationTestFramework,代码行数:5,代码来源:AcquisitionService.cs

示例10: queryDevices

 public XMLResult queryDevices(XMLParameter sensorTypeList)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("queryDevices", new object[] { sensorTypeList.GenerateXML() }));
     return this.lastResult;
 }
开发者ID:Manivannan-ezhumalai,项目名称:AutomationTestFramework,代码行数:5,代码来源:AcquisitionService.cs

示例11: queryLines

 public XMLResult queryLines(XMLParameter deviceIdList)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("queryLines", new object[] { deviceIdList.GenerateXML() }));
     return this.lastResult;
 }
开发者ID:Manivannan-ezhumalai,项目名称:AutomationTestFramework,代码行数:5,代码来源:AcquisitionService.cs

示例12: createSimpleInstance

 public XMLResult createSimpleInstance(XMLParameter instanceInfo)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("createSimpleInstance", new object[] { instanceInfo.GenerateXML() }));
       return this.lastResult;
 }
开发者ID:Erkan-Yilmaz,项目名称:AutomationTestFramework,代码行数:5,代码来源:SimpleInstanceService.cs

示例13: setRadioLogEntry

 public XMLResult setRadioLogEntry(XMLParameter radioLogEntryInfoXml, string radioLogEntryInternalId)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("setRadioLogEntry", new object[] { radioLogEntryInfoXml.GenerateXML(), radioLogEntryInternalId }));
       return this.lastResult;
 }
开发者ID:Erkan-Yilmaz,项目名称:AutomationTestFramework,代码行数:5,代码来源:RadiologService.cs

示例14: exportRadioLog

 public XMLResult exportRadioLog(XMLParameter filter)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("exportRadioLog", new object[] { filter.GenerateXML() }));
       return this.lastResult;
 }
开发者ID:Erkan-Yilmaz,项目名称:AutomationTestFramework,代码行数:5,代码来源:RadiologService.cs

示例15: createFMS

 public XMLResult createFMS(XMLParameter fmsInfo)
 {
     this.lastResult = new XMLResult(this.InvokeMethod("createFMS", new object[] { fmsInfo.GenerateXML() }));
       return this.lastResult;
 }
开发者ID:shilixing,项目名称:AutomationTestFramework,代码行数:5,代码来源:FMSService.cs


注:本文中的PAS.AutoTest.PasATCore.XMLParameter.GenerateXML方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。