Contributions
Re: TC Stop running if Region Check point fail
Still getting same problem. Dim IsGraphValid Set objTargetLynx = Aliases.TargetLynx .MDIClient.wndChromatogram.AfxFrameOrView42.AfxWnd42 ' TC will stop while runningthe below code IsGraphValid= Regions.Compare("SummationInTarLynx_Type1",objGraph) Msgbox IsGraphValid OR ' TC will return either True or false while runningthe below code Msgbox Regions.Compare("SummationInTarLynx_Type1",objGraph) Let me know what is problem in the above code.995Views0likes0CommentsTC Stop running if Region Check point fail
1.Dim ValidCheckPoint 2.On Error Resume Next 3.ValidCheckPoint= Regions.SummarySection_PrintDoc.Check(objExpected.Picture(97, 369, 410, 80, False)) 4.If Err.Number <> 0 Then 5.Msgbox "An exception occurred !!! " 6.End If 7.Msgbox "TC running next step" 8.Sub GeneralEvents_OnStopTest(Sender) 9.Msgbox "TC going to stop" 10.End Sub In the above code, I use the region check point.(Line 3) If the error thrown it@line 3,then ihandle it@Line 2 i.e. it should run line 5 and continue running the Line 7 too. But in the above code it will @Line 9. Please let me know how to handle such kind of error i.e. i want TC to continue runinstead of stop.11KViews0likes5CommentsRe: Not able to type Keys in cosole mode.
Hi Allen, When i'm having tough time, u will help me so u are God for me!!! What isProblem ? Method like 'KeyDown' and 'KeyUp' are not supported formy object i.e. Aliases.vmware_vmrc.wndVirtualEmbedded So let me know how to solve it using any other method. Regards, Hoks1.4KViews0likes0CommentsNot able to type Keys in cosole mode.
What is Problem ? I have VMware Remote Console. In this I need to type 12 i.e. numeric key 1 and 2 I follow the below steps: 1. To take control in the console I need to Press Ctrl+G (see Screen shot Pict1.jpg file) Using the following code… I achieved this steps. Dim objVM Set objVM =Aliases.vmware_vmrc objVM.wndVirtualEmbedded.Keys("^g") 2. Now I need to type numeric key 12. I use the following code : objVM.wndVirtualEmbedded.Keys("12") ‘Failed to type it objVM.wndVirtualEmbedded.Keys("[12]") ‘Failed to type it objVM.wndVirtualEmbedded.Keys("[~12]") ‘Failed to type it See screen shot pict2.jpg file. Let me know how to solve this problem.15KViews0likes5Comments