Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QTP Execution Problem
#11
Not Solved
Sample script also opened in Read only mode. No one is accessing my script because we are executing scripts in local machine only.
I have attached screen shot for one line of code, I dont know how to change mode from Read-only to normal. I have verified setting under Tools-->"Options" too.
Can you provide VB script to open in Normal mode
Hi Friends,
QTP opened in Read only mode because i have used below mentioned script in AOM.
App.open "D:\QTP_RAZOO\Driver", True

Instead of True if we use False (App.open "D:\QTP_RAZOO\Driver", False) QTP will be opened in Normal mode.
But still i am facing, if QTP is not identified object in applicationa, again its traversing to First step of script. Can you provide what are the necessary settings i have to do.

Thanks In Advance


Attached Files Image(s)
   
Reply
#12
Not Solved
Show the code related to selecting an image and clicking on Open button
Reply
#13
Not Solved
Below mentioned script is in Testcase file(.xls file)
Component Browser Page Object ObjectName Action Parameter

Web An inspiring place to An inspiring place to WebFile Story_Image Set C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Winter.jpg

Web An inspiring place to Choose File to Upload WinButton Open Click


In library file contains


Code:
Public function fnFile(WebBrowserDesc,WebPageDesc,WebFileDesc,strAction,strParam,strExpected,strChkPoint)
   Select Case strAction
           'Set Value
     Case "Set"
    Browser(WebBrowserDesc).Page(WebPageDesc).WebFile(WebFileDesc).Set strParam
    End Select
End Function



Code:
Public function fnWinButton(WebBrowserDesc,WebDialogDesc,WinButtonDesc,strAction,strParam,strExpected,strChkPoint)

   Select Case strAction
        'Click Button
    Case "Click"
          Browser(WebBrowserDesc).Dialog(WebDialogDesc).WinButton(WInButtonDesc).Click
End Select
End Function
Reply
#14
Not Solved
WInButtonDesc may not be having sufficient description in it to identify that open button while using task manager?


Instead of messing with this script create a new script and perform only selecting an image and clicking ok button using
1.recording process
2.using descriptive programming without calling any function

Let me know if both ways work USING TASK SCHEDULAR
Reply
#15
Not Solved
I have used both Descriptive program and Recording. If object is not identified by QTP its going to next step and so on. Its not traversing to first step. If object is not identified by QTP , It should show popup window. Normal execution its showing popup window(Stop, Retry, Debugging buttons), but when we are using Task scheduler its not showing any popup window
Reply
#16
Not Solved
ok,then i think there is some logical error, it might be trying to execute same test again in next loop or something.
Comment the code which is doing image pick operation and see what happens when no errors anywhere
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to catch the script execution when QTP scripts are executed from command line Sreeni.lutukurthy 0 2,684 03-19-2015, 05:55 PM
Last Post: Sreeni.lutukurthy
  Sybase connectivity and PROC execution by QTP 10 guin.anirban 0 2,450 06-14-2011, 11:33 PM
Last Post: guin.anirban
  Error during execution of QTP script prasadworld321 6 7,060 04-22-2010, 07:17 PM
Last Post: Vandembergue

Forum Jump:


Users browsing this thread: 1 Guest(s)