本文整理汇总了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;
}
示例2: createPresentationState
public XMLResult createPresentationState(string imageInternalID, XMLParameter presentationState)
{
this.lastResult = new XMLResult(this.InvokeMethod("createPresentationState", new object[] { imageInternalID, presentationState.GenerateXML() }));
return this.lastResult;
}
示例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);
//.........这里部分代码省略.........
示例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;
}
示例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);
示例6: setAnalysisInfo
public XMLResult setAnalysisInfo(string analysisInternalID, XMLParameter indexedInfo)
{
this.lastResult = new XMLResult(this.InvokeMethod("setAnalysisInfo", new object[] { analysisInternalID, indexedInfo.GenerateXML() }));
return this.lastResult;
}
示例7: openObjects
public XMLResult openObjects(XMLParameter objectInternalIDs)
{
this.lastResult = new XMLResult(this.InvokeMethod("openObjects", new object[] { objectInternalIDs.GenerateXML ()}));
return this.lastResult;
}
示例8: setAsynAcqPatientInfo
public XMLResult setAsynAcqPatientInfo(XMLParameter asyncAcqPatientInfo)
{
this.lastResult = new XMLResult(this.InvokeMethod("setAsynAcqPatientInfo", new object[] { asyncAcqPatientInfo.GenerateXML() }));
return this.lastResult;
}
示例9: startAcquisition
public XMLResult startAcquisition(XMLParameter acqInfo)
{
this.lastResult = new XMLResult(this.InvokeMethod("startAcquisition", new object[] { acqInfo.GenerateXML() }));
return this.lastResult;
}
示例10: queryDevices
public XMLResult queryDevices(XMLParameter sensorTypeList)
{
this.lastResult = new XMLResult(this.InvokeMethod("queryDevices", new object[] { sensorTypeList.GenerateXML() }));
return this.lastResult;
}
示例11: queryLines
public XMLResult queryLines(XMLParameter deviceIdList)
{
this.lastResult = new XMLResult(this.InvokeMethod("queryLines", new object[] { deviceIdList.GenerateXML() }));
return this.lastResult;
}
示例12: createSimpleInstance
public XMLResult createSimpleInstance(XMLParameter instanceInfo)
{
this.lastResult = new XMLResult(this.InvokeMethod("createSimpleInstance", new object[] { instanceInfo.GenerateXML() }));
return this.lastResult;
}
示例13: setRadioLogEntry
public XMLResult setRadioLogEntry(XMLParameter radioLogEntryInfoXml, string radioLogEntryInternalId)
{
this.lastResult = new XMLResult(this.InvokeMethod("setRadioLogEntry", new object[] { radioLogEntryInfoXml.GenerateXML(), radioLogEntryInternalId }));
return this.lastResult;
}
示例14: exportRadioLog
public XMLResult exportRadioLog(XMLParameter filter)
{
this.lastResult = new XMLResult(this.InvokeMethod("exportRadioLog", new object[] { filter.GenerateXML() }));
return this.lastResult;
}
示例15: createFMS
public XMLResult createFMS(XMLParameter fmsInfo)
{
this.lastResult = new XMLResult(this.InvokeMethod("createFMS", new object[] { fmsInfo.GenerateXML() }));
return this.lastResult;
}