Flex :: Testing - QTP Can Not Recognize The Object?
Apr 5, 2011
I am using Quicktest professional 11 trial version. I have a flex application for testing. When I try to record action performed on the flex application. QTP stores it as MacroMediaFlashPlayerActiveX rather than the origin button or link. I am using flex 3.5.0 and internet explorer 7.
View 1 Replies
Similar Posts:
Aug 3, 2010
way to convert an email address once entered in a textfield as an object like shown in this image on MS office outlook ;
the point is that now in outlook as my cursor is positioned just after "user2@gmail.com" if I click backspace I will delete the entire email address, as if it was one object and not simple text entered.
View 1 Replies
Jun 10, 2010
We are trying to automate our flex application. After adding automation libraries to our project we get the following exception:
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.automation::AutomationManager$/addDelegates()
at mx.automation::AutomationManager$/addDelegates()
at mx.automation::AutomationManager$/addDelegates()
[code].....
We are using Flex 3.4 and maven2 to build the application.
View 2 Replies
Oct 20, 2010
im creating multiple objects (the number is dynamic)they move randomly, but i want dont want them to be able to pass thru each other.i'm having dificulty on writing the hitTextObject code because I dont know how to refer the other objects.[code]
View 5 Replies
Sep 16, 2010
If I load an SWF with a query string at the end, like:
object.swf?this=that
then "this" is properly recognized as a flashvar within the flash object.But, if I set "this" via mod_rewrite, as in:
RewriteRule ^object$ lib/object.swf?this=that [QSA,NC,L]
then "this" is undefined.I even wrote a little PHP script to dump the contents of $_GET (changed the rewrite target temporarily), and I'm positive that the rewrite rule is working.
mod_rewrite clarification:
To demonstrate the strangeness of the problem, let me temporarily change the rewrite target to "object.php", so the rule now reads:
RewriteRule ^object$ lib/object.php?this=that [QSA,NC,L]
I created object.php in the /lib/ directory with the following line:
<?php echo '<pre>'.print_r($_GET, true).'</pre>'; ?>
Then, when I navigate to /object, I get the following output:
Array
(
[this] => that
)
This demonstrates that the rewrite rule is working as expected.Still, when I change the rewrite target back to the SWF, "this" is not recognized as a flashvar.(I'd definitely check the rewrite log to make sure, but I don't think I have access to it on the Media Temple server I'm using.)
View 2 Replies
May 18, 2010
I'm having trouble testing for an object's visibility on the stage without using an event listener. I know this is pretty basic, but I can't seem to find anything online and none of my flash friends are around eitherowing code, what is it that I need to do to activate the function? I thought you could write a function without having an event listener.
function test (e:Event) {
if (square_mc.visible==true) {
trace("square is visible");
[code].....
View 7 Replies
Feb 18, 2009
I'm making a game that's similar to Pong. Basically instead of a long, skinny paddle, the paddle is wider -- but this creates some problems when hit testing.
I don't want the ball to be able to hit the side of the paddle, only the front of it (the side facing the other paddle, technically the side part). I'm basically wondering how I can run a hit test in AS3 but for only one side of the object. The object is a basic movieclip.
View 0 Replies
Feb 28, 2009
so I have a function on the Main Timeline that creates an instance of the class Ball once every 60 frames (1 second). In the class code for Ball I have this:
Code:
package {
import flash.display.MovieClip;
import flash.events.*;
[Code].....
As you can see, I am trying to make it so that if two instances of the class Ball collide, then it should output "STOP". But it isn't working.
View 7 Replies
Feb 2, 2011
I basically need to scale an object up when the user rollsover the button which I have created dynamically already and I need to make sure the object is fully scaled up before I can allow the user to scale it back down again.Ive tried putting 2 tweens (x and yscale) into a function but not sure how to check if the tweens have finished. Im assuming if I check the function is complete it wont take into consideration the tweens may still be running.
View 0 Replies
May 18, 2009
MouseEvent.target will return the target object... but how do I access the specific object type? I know it's probably simple... but it's late and I'm fried. The code below obviously doesn't work. I just need someone to tell me what to put instead of [object MovieClip] and [object SimpleButton]
Code:
stage.addEventListener(MouseEvent.CLICK, fOnClick);
function fOnClick(e:MouseEvent):void {
[code].....
View 10 Replies
Oct 13, 2009
I have a flash programming research assignment using AS3.The assignment is to create a random object that moves in a direction upon testing movie. After 2-3 seconds the object needs to change random directions.
View 1 Replies
Oct 13, 2009
The assignment is to create a random object that moves in a direction upon testing movie. After 2-3 seconds the object needs to change random directions.
View 1 Replies
Apr 19, 2011
My code snipet looks like :
[Code]...
Do you have idea about the reason for that error and how to prevent it? N.B. The code that triggers this error is as a result for click handler. If before encountering this error change the selection on my yearsCb, everithing is fine. EDIT: I forget to specify that this error is thrown when it is a selected item in my ComboBox. It seem that after container that holds the ComboBox loses the focus, it doesn't recognize it's ComboBox child as having a selected item anyway (this problem arise only after the modal popup close.).
View 2 Replies
Jul 7, 2011
I'm using this AsyncHelper. I would like to create basic test case where I would like to dispatch event from the test method (by Parsley MessageDispatcher), catch this event in any other method and dispatch it back (by flex EventDispatcher).
This is my test case:
package flexUnitTests {
import flash.events.ErrorEvent;
[code]......
View 1 Replies
Mar 31, 2011
I posted the same question but I think it was not so clear. Now I am rephrasing my question with real problem.I have a flex application. It is basically a web application. On it I have a player that play avi files and some buttons and tabs along side.The application also have recording button that records that direct stream from an IP cam and store that stream on the media (USB). How can I automate function testing of such application. Like I have confusion that when I press the recording button but can I be sure that recording starts? I have tried RIATest and flexUnit 4.
View 2 Replies
Jun 8, 2010
In my application this works:
[Code]...
View 1 Replies
Mar 15, 2011
I am using flex to generate a lexical analyser for a custom language. The problem I am having is that as soon as I find a misformed token... I have no way to tell what other tokens follow this one. e.g.[code]Here, the stream of tokens will be id,<,>,id,<;>...... the language specifies that each token be seperated by a whitespace. So seeing a v after 1 should produce an error and the scanner has to print that error. After that, there are more legal tokens and another illegal token (~return). How do I process the rest of the legal tokens and print the second error.I am using flex as the scanner generator. When I find that none of the regular expressions for the lexeme matches, I call an error routine that prints the appropriate message.How do I resume processing after calling this routine?
View 1 Replies
Aug 31, 2010
i gave the tree an ArrayCollection as dataprovider that i pulled from the database, and it contains the children, but the discloser icon wont disappear on an object that doesn't have a child.i think the problem is that the renderer doesn't recognize the leaf child, wich contains a children array of length 0, or null......
View 2 Replies
Sep 13, 2011
IŽam trying to create my own custom list component in a Flex mobile Project which fires an Event when the user touches a listitem and holds the finger down for a given time.Some kind of "longTouch"-Event like its implemented on native android listitems to edit the entry for example.
I tried to listen for the MOUSE_DOWN Event to start a timer and dispatch an event when the timer finished. But this approach failed because i cant get the listitem that was pressed by the user because the List component updates the "selectedItem"-property only after the user lifts his finger from the list.
View 1 Replies
Oct 14, 2010
We have a flex based UI whose functionality (eg: login, logout) needs to be tested periodically in IE 7. Manual testing takes a lot of time and hence we want to automate it EDIT: We dont have the source code of this app uder test so cannot use something like FlexUnit. Is there a way to automate this testing?
I have heard of FleXmonkey, but have read negative reviews of it and hence wary of trying it.
[Code]...
View 4 Replies
Dec 16, 2009
I am developing a "dumb" front-end, it's an AIR application that interacts with a "smart" LiveCycle server. There are currently about 20 request & response pairs for the application. For many reasons (testing, developing outside the corporate network, etc), we have several XML files of fake data, and if a certain configuration flag is set, the files are loaded, a specific file is parsed and used to create a mock response. Each XML file is a set of responses for different situation, all internally consistent. We currently have about 10 XML files, each corresponding to different situation we can run into.
This is probably going to grow to 30-50 XML files. The current system was developed by me during one of those 90-hour-week release cycles, when we were under duress because LiveCycle was down again and we had a deadline to meet. Most of the minor crap has been cleaned up. The fake data is in an object called FakeData, with properties like customerType1:XML, customerType2:XML, overdueCustomer1:XML, etc. Then in the FakeData constructor, all of the properties are set like this:
customerType1:XML = FileUtil.loadXML(File.applicationDirectory.resolvePath("fakeData/customerType1.xml");
And whenever you need some fake data (this happens in special FakeDelegates that extend the real LiveCycle Delegates), you get it from an instance of FakeData. This is awful, for many reasons, but it works. One embarrassing part is that every time you create an instance of FakeData, it reloads all the XML files. If there's a design pattern that is not Singleton that can handle this more elegantly. The constraints are:
No global instances can be required (currently, all the code dealing with the fake data, including the fake delegates, is pulled out of production builds without any side-effects, and it needs to stay that way). This puts the Factory pattern out of the running. It can handle multiple objects using the XML data without performance issues. The XML files are read centrally so that the other code doesn't have to know where the XML files are, and so some preprocessing can be done (like creating a map of certain tag values and the associated XML file).
View 2 Replies
Mar 25, 2011
I want to automate testing of flex application. I have heard that Flex provides with classes that help you automate the testing. But I don't know where to find them and how to use them.
View 3 Replies
Mar 25, 2011
Possible Duplicate: automate testing in Flex I want to automate testing of flex application. I have heard that Flex provides with classes that help you automate the testing. But I don't know where to find them and how to use them.
View 1 Replies
Jul 24, 2009
What methods do you use to unit test event handlers, particularly if they require information from the event (such as mouse coordinates, or the target of the event)? Is the most common practice to just refactor the behavior into a method that does the lifting while the handler just extracts information from the event, or are there effective ways to simulate event dispatch in FlexUnit or Fluint?
View 1 Replies
Aug 5, 2009
I noticed that in Windows, if you maximize a window you can not resize it until you un-maximized it again. This appears to be a normal behaviour, so I would like to remove my resize gripper when the window is maximised.At the moment I can't find a property to detect if a window is maximized, and although I could add a boolean in my controller, it wouldn't necessarily catch requests to maximize from the OS.So if you know of a reliable way to test if a window is maximized please let me know.On a related note, I am using custom chrome, and when I maximize a window it overlaps the windows task bar. I can think of hacks to detect available screen size (using a transparent system chrome window), but it would be good to know of a better method.
View 7 Replies
Aug 5, 2009
testing a Flex app without static Automation IDs attached to components? All of the elements in the apps are generated .....
We've investigated FlexMonkey but it appears to be incompatible with any app that utilizes the ExternalInterface. RIATest's scripting language leaves much to be desired...
View 4 Replies
Aug 14, 2009
I'm trying to test clipping on two canvases. Both canvases are 100px wide. They're 20px apart. I've placed a label inside one and made it 200px wide. Scroll bars will show up on the canvas. When I don't have the label inside and use hitTestObject it returns false. When I place the label inside it returns true. Is there any way to alter the canvas with the label inside so that it doesn't expand to the width of the label?
[Code]...
View 1 Replies
Sep 22, 2009
I would like to use different service definitions in a Flex app depending on whether I'm running on:
My local developer machine
The test tier
The QA tier
The production tier
My services are all AMFPHP remote objects, living on different hosts and at different locations depending on which tier I'm on. How can I have my flex app choose the 'correct' tier at runtime to connect to?
View 2 Replies
Jan 11, 2010
I am looking for recommendations for tools for automated testing of a web application with some flex components.To provide some background we have a web application that was entirely developed in AJAX+HTML and we were somewhat successful in using Selenium for testing that application end to end. We recently added some flex components into the mix and it got complicated. We tried using Selenium Flex but we are disappointed with what it can do. So now we are looking for some alternatives. Ideally the tool would be able to drive both the web and the flex parts simultaneously, but we can also settle for just testing the flex components on their own. We prefer open source but good commercial tool is also an option.
View 4 Replies
Jul 10, 2010
I have a flex application written using PureMVC framework.Now,I want to write tests.We are using FlashBuilder 4.Is FlexUnit sufficient for testing? Are there any issues you have faced while writing tests?
View 1 Replies