/// <summary> /// Constructor for Vscan Common /// Master and Master Path are spcified by caller. /// </summary> /// <param name="testwin">Window to capture image of</param> /// <param name="master">Master Name</param> /// <param name="masterpath">Relative Path to Master</param> public VScanCommon(Window testwin, string master, string masterpath) { if (testwin != null) { masterPath = masterpath; Index = new LayoutMasterIndex(null); if (master != null && master != string.Empty) { index.FileName = master; } GlobalLog.LogStatus("Master Name : {0}", index.FileName); if (masterpath != null && masterpath != string.Empty) { index.Path = masterpath; } GlobalLog.LogStatus("Master Path : {0}", index.Path); SetWindow(testwin); } }
/// <summary> /// /// </summary> /// <param name="test"></param> /// <param name="masterDimensions"></param> public VScanCommon(LayoutTest test, IMasterDimension[] masterDimensions) { if (test != null) { index = new LayoutMasterIndex(masterDimensions); index.FileName = Common.ResolveName(test); index.Path = Common.ResolvePath(test); GlobalLog.LogStatus("Master Name : {0}", index.FileName); GlobalLog.LogStatus("Master Path : {0}", index.Path); SetWindow(test.window); } }
/// <summary> /// Constructor for Vscan Common /// </summary> /// <param name="testwin">Window to capture image of</param> /// <param name="test">Calling Test</param> public VScanCommon(Window testwin, object test) { if (test != null && testwin != null) { masterPath = Common.ResolvePath(test); Index = new LayoutMasterIndex(null); index.FileName = Common.ResolveName(test);; GlobalLog.LogStatus("Master Name : {0}", index.FileName); index.Path = masterPath; GlobalLog.LogStatus("Master Path : {0}", index.Path); SetWindow(testwin); } }
/// <summary> /// Constructor for Vscan Common /// </summary> ///<param name="test">Test of type LayoutTest that is currently running</param> public VScanCommon(LayoutTest test) { //HACK: Visual Verification technology should not be taking a dependency on layout technology. if (test != null) { index = new LayoutMasterIndex(null); index.FileName = Common.ResolveName(test); index.Path = Common.ResolvePath(test); GlobalLog.LogStatus("Master Name : {0}", index.FileName); GlobalLog.LogStatus("Master Path : {0}", index.Path); SetWindow(test.window); } }
/// <summary> /// Constructor for Vscan Common /// Master is specivif Path /// </summary> /// <param name="testwin">Window to capture image of</param> /// <param name="test">Calling Test</param> /// <param name="master">Master Name</param> public VScanCommon(Window testwin, object test, string master) { if (test != null && testwin != null) { masterPath = Common.ResolvePath(test); Index = new LayoutMasterIndex(null); if (master == null || master == string.Empty) { index.FileName = test.GetType().Name; } else { index.FileName = master; } GlobalLog.LogStatus("Master Name : {0}", index.FileName); index.Path = masterPath; GlobalLog.LogStatus("Master Path : {0}", index.Path); SetWindow(testwin); } }