Micro Focus QTP (UFT) Forums
Error in the class name for objects through spy - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Error in the class name for objects through spy (/Thread-Error-in-the-class-name-for-objects-through-spy)



Error in the class name for objects through spy - siri - 08-06-2008

Hi ankur and All,
When i develop the applicaiton in Flex and record that through qtp the spy is not recognizing it as flex onject instead it is recognizing as win object
Below are the mentioned screen shots i n the attachement


RE: Error in the class name for objects through spy - surya_7mar - 08-06-2008

One question have you opened the QTP first and Flex Appliation next.

Do you have proper Add ins for this.

These two are the possible reasons for Object being not recognised


RE: Error in the class name for objects through spy - siri - 08-06-2008

I have oped the flex applicaiton and then qtp

what do you want me to do?


RE: Error in the class name for objects through spy - siri - 08-06-2008

even if i open qtp frst then flext still it is recognizing as win object no t flex


RE: Error in the class name for objects through spy - siri - 08-06-2008

what surya no reply


RE: Error in the class name for objects through spy - prince3105 - 08-06-2008

Have you installed the Adobe Flex add-in?


RE: Error in the class name for objects through spy - siri - 08-07-2008

yes i have installed


RE: Error in the class name for objects through spy - Rajashekar Gouda - 08-07-2008

It is recommended that while testing the application by using QTP. QTP should be opened first then open the IE and ur application url.

Regards
Raj


RE: Error in the class name for objects through spy - siri - 08-07-2008

yes i have done similarly qtp frst and application nxt


RE: Error in the class name for objects through spy - siri - 08-07-2008

Hi below mentioned is the code for flex sample applicaiotn
Here we have a Emede function that embedes a
pluginspage="http://www.adobe.com/go/getflashplayer">
codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
Flexshowcase.swf file
so i beleive it is nto the full code source for the link
It is retrieved from some other flash application so i believe we need to do coding first in the flash tool then in the flex tool.
jsut try any one pl,s

<!-- saved from url=(0014)about:internet -->
Code:
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>FlexStore</title>
<script src="AC_OETags.js" language="javascript"></script>
<style>
body { margin: 0px; overflow:hidden }
</style>
</head>

<body scroll='no'>
<script language="JavaScript" type="text/javascript">
<!--
        AC_FL_RunContent(
                    "src", "flexstore",
                    "width", "100%",
                    "height", "100%",
                    "align", "middle",
                    "id", "flexstore",
                    "quality", "high",
                    "bgcolor", "#869ca7",
                    "name", "flexstore",
                    "allowScriptAccess","sameDomain",
                    "type", "application/x-shockwave-flash",
                    "pluginspage", "http://www.adobe.com/go/getflashplayer"
    );
// -->
</script>
<noscript>
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
            id="flexstore" width="100%" height="100%"
            codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
            <param name="movie" value="flexstore.swf" />
            <param name="quality" value="high" />
            <param name="bgcolor" value="#869ca7" />
            <param name="allowScriptAccess" value="sameDomain" />
            <embed src="flexstore.swf" quality="high" bgcolor="#869ca7"
                width="100%" height="100%" name="flexstore" align="middle"
                play="true"
                loop="false"
                quality="high"
                allowScriptAccess="sameDomain"
                type="application/x-shockwave-flash"
                pluginspage="http://www.adobe.com/go/getflashplayer">
            </embed>
    </object>
</noscript>
</body>
</html>