Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Checkpoints in Expert View
#1
Not Solved
Hi All,

I wrote my script in Expert View, and defined all objects in object repository. Script is referring the objects from Rep.


Q1: How can I use/add checkpoints in Expert View, if my script has no objects defined in Kewword View.

Q2: My scripts goes page by page, how can I test/check if one page is submitted successfully and we get the next page?

Thanks in advance.
Reply
#2
Not Solved
Hi Farhanalam,
The answer for your Question number 1 :
you can't add any checkpoints in Expert View if you don't have any object on your repo..
But the solution for this case you can update your repo by using "Add Object To Local" Button on Object Repo Windows. Once you had to add the object, you can use that.

The answer for your Question number 2 :
I think we can't simply check page by page on script that we create.
But u can use debug mode to help you check page by page for your scripts.

CMIW,

Thanks And Regards,

deny.prastowo
Reply
#3
Not Solved
Thanks for your response.

I have objects defined for each page. Since this test project I created using the Expert View not from Record and Play. So the Keyword View is not created by the Record/Play. In this case if I want to add a check point I need to have an object which I have in my Object Repository. But I do not understand how can I add a checkpoint if object is not shown in Keyword View. However all objects in Object Repo.

As you suggested add object in Object Repo, however I have all my objects in Repo. Assume an Edit Box named First Name is defined in Object Repositor. But when I go to Menu Insert->Checkpoint->Standard Check Point it is disabled. Because no object is selected in Keyword View. I assume that the object must be selected in Keyword View to add Standard Checkpoint. Correct or Not?

Thanks in advance to spend time for my question.
Farhan
Reply
#4
Not Solved
1. Why not write your own checkpoints, this can be done very simply.

2. If you know what page will be displayed when one is submitted you should be able to write your own checkpoint based on that.
Reply
#5
Not Solved
How can I write my own check point?
Reply
#6
Not Solved
How About using (Exist) Properties from the object do you have And some Reporter like Done, Pass, Warning And Failed ?

example :
Code:
if Browser("Browser").Page("Page").Frame("Top").WebElement("WEB").Exist(1)  Then

Reporter.ReportEvent micDone,"Task Verification","Description"

Else

Reporter.ReportEvent micFail,"Task Verification","Description"

CMIW

Thanks And Regards,
deny.prastowo
Reply
#7
Not Solved
Thanks for your response.
When we careate a checkpoint in Keyword View it generates a syntax in Expert View Check() - Do you mean any status (example micDone or micFail) which is sent to report is basically called a checkpoiint?

Whats the diffence b/w the standard checkpoint and the checkpoint example you have provided? please explain?

Thanks
Farhan
Reply
#8
Not Solved
Hi ,

FYI , By default checkpoints will be in disable mode in the Insert menu --> checkpoints

Once we are in recording mode, then the checkpoints will activated for use in insert menu --> checkpoints .
Reply
#9
Not Solved
Actually, I created a test project in Expert View not using Record-Play. Its a wizard kind of application. Goes to page by page. Every page is handled by a function. For each page I have one VBS file. I want to make sure if a current page is successfully submitted and the next page is shown is the right page. For this I want to use some assert statement like a Checkpoint. But I dont know how to create a checkpoint in Expert View if I do not have an object in Keyword View.

Code:
Code:
'Calling functions in Function Library
Do_AccountSearch
View_AccountFileSummary
Do_NewSubmission
Add_Coverables(COV_TYPE_DWELLING)
RatingInputs
Add_Coverages

Option Explicit
'*******************************************************
' Rating Inputs Page
' Farhan Alam On 06-Mar-2009
'*******************************************************
Code:
Function Add_RatingInputs
    Dim frame
    Set frame = Browser("PCB").Page("RI_Page").Frame("Button Frame")
    frame.WebElement("Next").WaitProperty "visible",true, 100000
    frame.WebElement("Next Button").Click
End Function
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  SwfTree View Validation in UFT YogeshCallappa 0 2,140 10-28-2016, 01:26 PM
Last Post: YogeshCallappa
  Why not Checkpoints subhashinid 0 1,605 06-30-2016, 07:36 PM
Last Post: subhashinid
Question Outside View Terminal Emulator testing joncfrazier 0 3,381 12-04-2013, 10:47 PM
Last Post: joncfrazier
  To view log files in QTP sheetal 5 16,764 10-08-2013, 02:27 PM
Last Post: Gurpreet
  Query about checkpoints pkdhake 5 3,704 07-11-2013, 03:17 PM
Last Post: vinod123

Forum Jump:


Users browsing this thread: 1 Guest(s)