Results 1 to 12 of 12

Thread: Shows whole window as one object rather detecting individual objects

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jul 2007
    Answers
    1

    Shows whole window as one object rather detecting individual objects

    I am working on web application and most of its wizards developed on flash Controls such as (Window, Combo, Pushbutton, etc). When I record the wizards it shows the whole window as one object rather detecting its individual objects.

    Can Silktest 7.5 recognized such individual component during recording.

    I just wanted know how to by pass this problem.

    Your comments always welcome...


  2. #2
    Junior Member
    Join Date
    May 2008
    Answers
    20

    Re: Shows whole window as one object rather detecting individual objects

    Hi,
    I have the same problem like you. I have this java application. Silktest identifies the complete window as a dialogbox and none of the objects (there are button, tree view etc..) inside it.

    I am not sure if the java extensions are enabled. When i run through the extension enablement process the "Test" button on "Test Extension Settings" does not get enabled at all.
    Do you think i might need some plugins?
    I am running Silktest version 7.1. The application uses Java version 1.4.2.

    Can some one help please?

    Thanks in advance.
    Sajith


  3. #3
    Contributing Member
    Join Date
    May 2008
    Answers
    32

    Re: Shows whole window as one object rather detecting individual objects

    Quote Originally Posted by sajithkutty View Post
    Hi,
    I have the same problem like you. I have this java application. Silktest identifies the complete window as a dialogbox and none of the objects (there are button, tree view etc..) inside it.

    I am not sure if the java extensions are enabled. When i run through the extension enablement process the "Test" button on "Test Extension Settings" does not get enabled at all.
    Do you think i might need some plugins?
    I am running Silktest version 7.1. The application uses Java version 1.4.2.

    Can some one help please?

    Thanks in advance.
    Sajith
    Hi Sajith

    Try doing this and let me know if it helps

    1. Copy the SilkTest_Java3.jar file from SilkTest\JavaEx folder to the JRE\ lib\ext folder.
    2. Rename the file access3.prop in the Silk Test folder to accessibility. Properties.
    3. Copy the accessibility. Properties file from Silk Test folder to JRE\lib folder.
    4. Copy the files qapjconn.dll and qapjarex.dll from Silk Test\Extend folder to
    Windows\System32 folder.

    Thanks
    Sabarish S


  4. #4
    Junior Member
    Join Date
    May 2008
    Answers
    20

    Re: Shows whole window as one object rather detecting individual objects

    Hi Sabarish,
    Thank you for responding.
    I tried what you suggested. Didn't help. Silktest still sees the Dialogbox, nothing inside it. The "Test" button on "Test Extension Settings" still does not get enabled.
    Do you think I need some plugins/addins?
    Let me know if you need more information to dig through.
    Thanx once again.


  5. #5
    Contributing Member
    Join Date
    May 2008
    Answers
    32

    Re: Shows whole window as one object rather detecting individual objects

    Quote Originally Posted by sajithkutty View Post
    Hi Sabarish,
    Thank you for responding.
    I tried what you suggested. Didn't help. Silktest still sees the Dialogbox, nothing inside it. The "Test" button on "Test Extension Settings" still does not get enabled.
    Do you think I need some plugins/addins?
    Let me know if you need more information to dig through.
    Thanx once again.

    Hi Sajith

    Oh so did you enable the java extensions ???
    if not go to - Options->Extensions and enable Java Extensions for a JAVA Application.

    Keep me posted with your findings.
    Also id this not works gime few more details (SilkTest version you are using etc...)

    Thanks
    Sabarish


  6. #6
    Junior Member
    Join Date
    May 2008
    Answers
    20

    Re: Shows whole window as one object rather detecting individual objects

    Hi Sabarish
    I have already tried enabling extensions. To be honest i am not sure if i did it right.
    If Program.exe was my AUT for which i need to enable extension, am i suppose to browse to program.exe for enabling extenstion? If not, what would it be? [IMG]c:\snapshot.JPG[/IMG]
    Can it be so that silk currently has the class libraries of a different version of Java than the one that my AUT is using? Do you think i might need to install JDK or JRE or anything?
    I am running Silktest version 7.1. The application uses Java version 1.4.2.
    What other information would you need?
    Regards
    Sajith


  7. #7
    Junior Member
    Join Date
    May 2008
    Answers
    20

    Re: Shows whole window as one object rather detecting individual objects

    Ohh the image did not get through.

    Attached Images Attached Images Shows whole window as one object rather detecting individual objects-snapshot-jpg 

  8. #8
    Contributing Member
    Join Date
    May 2008
    Answers
    32

    Re: Shows whole window as one object rather detecting individual objects

    Hi
    I dont think we need to add a .ddll and .exe files as Java Support is configured automatically when you use Enable Extension.

    If your application is recognised in the Enable Extension (WorkFlow Bar) then you may not add the .dll's.

    Point1:-
    Let me know if your application is web-based or standalone

    Point2:-
    In order for SilkTest to recognize Java controls, you may need to change the CLASSPATH environment variable. In addition to that for JVM/JRE 1.3+, you must also copy the applicable SilkTest .jar file to the lib\ext folder of your JVM/JRE. The SilkTest .jar file is located in the <
    SilkTest Install Directory>\JavaEx directory.

    Point 3:
    For Java 1.3, 1.4, and higher, you should not set a specific classpath variable – instead, use the default CLASSPATH=.; You must copy the SilkTest_Java3.jar file to the lib\ext folder of your JVM/JRE, and remove any previous SilkTest JAR files.

    Point 4:
    Let me know how you are running your application from .lax file or are you using JBuilder/JDeveloper.

    Last if its possible a screenshot of your application.


  9. #9
    Junior Member
    Join Date
    May 2008
    Answers
    20

    Re: Shows whole window as one object rather detecting individual objects

    Hi Sabarish
    I installed JRE on my test machine and then copied the SilkTest .jar file to the lib\ext folder inside JRE installation folder. When i did it last time i had copied the jar file to jre\lib\ext folder inside my AUT installation folder, which is where i goofed up.
    A big thank you. You are a star. :-)
    Silk seems to be knowing the objects inside my AUT. Although, its identifying all of them as customwin, i think i can try mapping them to the appropriate standard classes.
    Could you spare few more minutes and explains how these are interlinked?

    Well i have one more issue related to class mapping with another application which i'm working on simultaneously (an extension of the issues you just solved for me). I shall start a separate thread for that. I think you can help me with that too.

    Thanks one again.
    Sajith


  10. #10
    Junior Member
    Join Date
    May 2008
    Answers
    20

    Re: Shows whole window as one object rather detecting individual objects

    Hi,
    Just to update you on where i stand with the Java application. Now Silktest apparently knows all the controls on my Java application. Most of the objects have been assigned the appropriate Java classes. Only few customwins, none that would bother... not so far.

    To summarize, following is what i had to do to get Silktest up and running with my Java Application:
    1) Install JDK and JRE (version 1.6 used when I did it).
    2) Copy C:\Program Files\Segue\SilkTest\JavaEx\SilkTest_Java3.jar to C:\Program Files\Java\jre1.6.0_03\lib\ext (JRE's lib\ext folder).
    3) Enable extension for AUT; both in Extension Enabler and Options -> Extension. Click New and browse to .exe and Click OK. Check the check box under Java against newly added AUT.

    Keep JavaEx.inc unchanged. Unnecessary commenting would prevent silktest from ignoring some unnecessary classes but at the same time it may lead to class ambiguity and improper classes may be assigned to the Java objects.

    Cheers
    Sajith


  11. #11
    Junior Member
    Join Date
    May 2008
    Answers
    20

    Re: Shows whole window as one object rather detecting individual objects

    Hi,
    I realized that on top of what I listed in my previous post, one has to do the following in order to have silk identify java objects on a standalone application.

    1) Copy accessibility.properties from SilkTest folder to AUT's \jre\lib folder.
    2) Copy SilkTest_Java3.jar from SilkTest folder to AUT's \jre\lib\ext folder.
    3) Copy qapjconn.dll and qapjarex.dll from SilkTest folder to \Windows\System 32 folder.
    4) Restart the computer after making all the above changes (including the ones in the previous post.)

    This is all of what I had. If someone else has a different set of settings to make that would be a revelation.

    Regards
    Sajith


  12. #12
    Junior Member
    Join Date
    Apr 2009
    Answers
    2

    Re: Shows whole window as one object rather detecting individual objects

    Hi,

    I faced the same problem as mentioned by sajith and copied all the jar and properties files to the respective path, but still all objects are recognized as Custom win and i mapped to standard class. But when i tried to get contents it is returning empty.

    So i tried enabling the extension through basic work flow. I deleted the SilkTest_java3.jar file manually and enabled the extension for the application which is under test.
    Even after closing the application and restarted, the Test button in extension enable is not enabled. Please help me out to resolve the issue... Thanks in advance.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact