How to Work Object Repository using silk test Open Agent Tool with silk4test script?

Hi All,

How to Use and Store Object Repository in Silk Test Open Agent with Silk4test Script ? If having any guide , can you please share it ...

 

Thanks,

Sat6804

Parents
  • Verified Answer

    Hi Sat,

    The inc file is Silk Test Classic's equivalent of QTP's Object Repository. Although an inc file is more code-like it serves the same purpose as QPT's Object Resposity. The inc file is the place to store locators for objects and reuse them in your test scripts.

    Example:

    if you have three test scripts that click on a button with the text "Cancel" and for some reason you need to change the the text to "Exit", just update the locator for this button in your inc file. Then all of your three test scripts will use the new text when finding the button during playback.

    The test would look like this:

    MyWindow.MyButton.Click()

    and your updated inc file would look like this:

    [-] window MainWin MyWindow
    	[ ] locator "/MainWin"
    	[-] MyButton PushButton
    		[ ] locator "//PushButton[@caption='Exit']"


    Please let me know if that answers your question.
    Regards, Michael

Reply
  • Verified Answer

    Hi Sat,

    The inc file is Silk Test Classic's equivalent of QTP's Object Repository. Although an inc file is more code-like it serves the same purpose as QPT's Object Resposity. The inc file is the place to store locators for objects and reuse them in your test scripts.

    Example:

    if you have three test scripts that click on a button with the text "Cancel" and for some reason you need to change the the text to "Exit", just update the locator for this button in your inc file. Then all of your three test scripts will use the new text when finding the button during playback.

    The test would look like this:

    MyWindow.MyButton.Click()

    and your updated inc file would look like this:

    [-] window MainWin MyWindow
    	[ ] locator "/MainWin"
    	[-] MyButton PushButton
    		[ ] locator "//PushButton[@caption='Exit']"


    Please let me know if that answers your question.
    Regards, Michael

Children
No Data