Run a suite of tests (scenario) on a RemoteObject
Hello
I'm trying to run a suite of tests on a remote object.
It works fine, but I want to do a 'scenario' with the asynchronous request.
Here is my source:
[Test (async)]
public void ping (): void
{
_proxyTest.addEventListener (FaultEvent.FAULT, Async.asyncHandler (this, onWantTimeOut, null, onNotWantFaultEvent, SHORT_TIME,), false, 0, true);
Async.failOnEvent (this, _proxyTest, FaultEvent.FAULT);
_proxyTest.addEventListener (ResultEvent.RESULT, Async.asyncHandler (this, onNotWantTimeOut, null, onWantResultEvent, SHORT_TIME,), false, 0, true);
_proxyTest.Ping ();
}
[Test (async)]
public function pingTimeOut (): void
{
Async.failOnEvent (this, _proxyTest, ResultEvent.RESULT);
_proxyTest.addEventListener (FaultEvent.FAULT, Async.asyncHandler (this, onWantTimeOut, null, onWantFaultEvent, SHORT_TIME,), false, 0, true);
_proxyTest.pingTimeOut ();
}
/*
Managers
*/
ResultEvent and ResultEvent
protected function onWantResultEvent (event: ResultEvent, passThroughData:Object): void
{
}
protected function onNotWantResultEvent (event: ResultEvent, passThroughData:Object): void
{
Assert.Fail ("result back to request");
}
protected function onWantFaultEvent (event: ResultEvent, passThroughData:Object): void
{
}
protected function onNotWantFaultEvent (e:FaultEvent, passThroughData:Object): void
{
Assert.Fail ("lack of demand:" + e.message);
}
Timeout
protected function onWantTimeOut (passThroughData:Object): void
{
}
protected function onNotWantTimeOut (passThroughData:Object): void
{
Assert.Fail ('timeout request');
}
My idea is to run the pingTimeOut test after the end of the ping Test. Because I'm listening to events even on both tests (result event).
Could propose you a solution?
Thank you
Mikael
The only suggestion on top of my head is to ensure that you are running the Beta 2 code. There was a bug in beta 1 around the designation of 'expected' versus 'expected '. In Beta 2, both of these words work to set an expected error.
Mike
Tags: Adobe Open Source
Similar Questions
-
After dovnlading Creative Suite to test, my indesign CS6 gone for good! What can I do to get it back?
Cloud of reading takes up https://forums.adobe.com/thread/2089127 for some ideas
-
Problems running (service) - Oracle Application testing Suite
Hello
I installed Oracle Application Testing Suite and I can't get to the web interface running. The windows interface works well, but I can't seem to get the web interface to run. The problem seems to be isolated the the 'Oracle Application Testing Suite Service Application'... when I try to start the service, it stops (probably fails).
all this experience? Thank you.
DenialDid you already install the JBOSS Application Server too? This is normally a second stage of the installation of OATS. You can tell by choosing in the start menu XP OATMEAL-> tools-> Oracle Application Testing Suite Application Service Update.
If you have already installed this choice will warn you, giving you the chance to get out or reinstall.
-
Problem running scripts with Oracle Test Manager (MTM)
Hi all!
I am facing a problem to run any test in OTM.
I'm adding scripts that I created in OpenScript (and which take place in perfect inside) but running in Test Manager fails.
To be more precise, I even created a very simple script for the case in which I open the browser, navigate to an existing page (for example www.fmstocks.com/fmstocks - like documentation for example) and then I close the browser.
What is happening is that the test fails after a few seconds. In the report results, summary of Script, it there a failure result to give Total iteration:
+ Object "/ web:window[@index='0" [or @title =' subject: empty '] "+."
+ did not action: +.
+ < name of message = "Navigate" > < parameter WindowIndex = '0' > +.
+ < / parameter > +.
+ < parameter Url = "http://www.fmstocks.com/fmstocks" > +.
+ < / parameter > < / Message > +.
This is the same result that I get in any script I run (with different Url of course).
I tried to alternate some settings in the Manager (Tools-> system) systems and change my OTM server, I've seen in a thread. I found that if I write as a user name and password to my windows or my OTM username and password (instead of JMSAdmin I see is the default user name) when I run the test simply never stops!
To be clear, I just started using OATS. All the foregoing is done with the default settings after installation. OpenScript works fine but I need OTM so that I can perform several set of test scripts.
Any help is appreciated!Hello
You must first set back the remote system OTM to JMSAdmin / the_pwd_you_supplied_during_installation
Then, you must stop the Windows Service called "Oracle Application Testing Suite Agent Service" and put it in the manual.
Then, you start the agent from the command line
C:\OracleATS\agentmanager\bin\AgentManagerService.exe - c C:\OracleATS\agentmanager\bin\AgentManagerService.conf (something like that according to the installation path).Let us know if it is ok then.
JB
-
I read that a computer needs processor multi-core for the Creative Suite to run on. I have a dual-core iMac. The Creative Suite will run on this computer ok, or should I go with a higher processor?
Thank you
Estifanos
Hi evware7777,
You can check out CC Office approx. as well as requirements of the application using this KB doc CC. system requirements | Creative cloud.
Kind regards
Nicos
-
OSB: Cannot run message in the test console
Hi all
I have a problem with a test console.
I can't run document application in the test console.
The error is ' an unexpected error to access transport for service information: null ".
Any suggestion would be appreciated.
Thank you
Published by: tamjeekong on June 25, 2012 21:44Hello
Be sure to mark the answers accordingly... Useful or appropriate, following the rules of the forum
https://forums.Oracle.com/forums/Ann.jspa?annID=893Cannot run document application in the test console
Please give us more information about your problem. What is a Proxy Service? A Business Service? What kind of transport do you use?
See you soon,.
Vlad -
Can I run the suite adobe on a mini mac end of 2012?
Hi, I have a mac mini end of 2012. It has 4 GB of ram, Intel HD Graphics 4000 and an Intel Core i5 2.5 GHz. It is currently running OSX 10.10.5 I use iMovie and motion 5 for some time. I don't really think I want final cut, so I'm looking after adobe. The main applications of 2, I'll use is adobe first and sequelae. My computer will be able to run these two applications? THX
If they are in versions mac Yes
If they will work very well with only 4 GB is another question
-
Is powerful enough to run Creative Suite of MacBook Air?
I have completed about about my Creative Cloud 30 day trial and would sign. However, I am also picking a new macbook to run it. I have not a laptop for the time that I was using my iMac for everything. What I want to know, is the new MacBook Air, which was launched yesterday powerful enough to run Adobe creative applications? A macBook Pro looks the obvious choice that like it's my second computer and I used to use it as much as my iMac I focus mainly on the weight and the price - I wil he uses mainly on a trip a few months each year, but I still need to work efficiently with creative cloud. Can you please specify?
Yes, any MAC that exceeds the 10.6.8 can run creative cloud.
The specification techniques for various applications of SC 6 can be verified here: http://www.adobe.com/products/creativecloud/tech-specs.html
Hope it will help you decide better. !!
-
How to create the KIT Item test scenario?
Hi all
I want to test the operation of the KIT feature in OM I tried to look in the User Guides / Web, but I'm not able to get the specific features associated with KIT Item OM test
If anyone have idea of how point KIT works and what are the settings required to perform in the system associated with KIT, what Type of Transaction, we use, etc., it will be great.Vishal,
I don't know if you're familiar with CTO processes in Oracle (if she is not discover the CTO instructions/manual), but kits are very similar they have a bill of structure materials and components are eventually exploded on the client command buffer on save/booking (according to the setting of the option OM profile (: method of freeze included Item).
Each line has its own workflow in OM - once again, in the same way as a configuration except that in the case of a kit of all components are required.
I sent you a sample script of test to your e-mail address.
Kind regards
Jon -
How long is expected to end the Test check?
I am trying to run the suite of Test of NAS and the first step during check there are a lot of errors.
It takes about an hour to run and fail somewhere. Once I take steps to solve the problem it takes another 1 + hour to find the following problem which is very time consuming.
My question is, is it expected time (1 hr +) to perform the step to check? When I fix something, it takes another hour to find the following problem.
The more I see failures of inconsistently. For the first round if there is no ping failures not STAFProc on Linux VM, then for the second, it will pass but fail to retrieve the IP address to another VM linux management
Thanks in advance!
Yes, Verify takes 60 minutes. He said that he right in the pdf file of test. And Yes, it's very annoying.
Thank you
John
-
JUnit Test Suite Limitations on the number of test classes can be included in the suite
I run JUnit tests on my ADF Model picardalice in an application. I'm getting an instance of a request through the class of the device module and it helps in my test classes. It was created using all the Test Suite of Business components in JDeveloper 12.1.3.
I'm running a JUnit test suite and it has several test classes in its operation. It runs successfully some and others fail. If I run those who fail by themselves, they are successful. If I remove the test classes in the suite they work (even those who have failed when the test classes were listed as a result of tests).
Here is my code for the test method.
@Test
public void testAccess() {}
See ViewObject = fixture1.getApplicationModule () .findViewObject ("ProjEstimateDtlVO");
assertNotNull (view);
}
the ViewObject perspective comes return null for the execution of the test suite during all test classes are ran. It's successful return if I run one test case. It's successful return if I remove test classes in the following before running the suite.
There are 70 + test classes in the suite. Is there a limitation on the number of test classes that must be executed in a test suite? Is it because it is repeatedly using an instance of the application module? Is this other thing?
Everyone ran through this?
Thank you.
The problem in my case was because in one of the test cases I was releasing the module of the application in the method of disassembly. Since the application module was created once again, when I ran after tests and he ran this test scenario, anything after this would fail due to no application being created module.
Thanks, Timo
-
How to unit test a suite of unix command line?
I tried to run the Unix command line test unit via the sdcli command, but it get hooked forever. I use version 4.0.2. Is it possible to call the module of Oracle SQL developer of Unix environment test?
Below the out is when I tried to run the command sdcli with bash command - x.++ . sdcli-run UnitTest - suite-name DEMO - repo testdb - db testdb
+++ . sqldeveloper
+++ /opt/sqldeveloper/sqldeveloper.sh
Please help me.
Who doesn't look like the output of the linux shell?
Here is what I get.
-
Hi friends,
I need to run a Suite of 5 tries. I created a Suite with these 5 trials. Trials are appearing in alphabetical order. When I run it, it runs in a random order (not included).
I want to run it in the order indicated (for example, Test_3, Test_2, Test_4, Test_1, Test_5). How can I achieve this?
Thanks in advance!
Hi James,
Thanks for the clarification. I could be wrong, but I do not believe there have been complaints on test item out of sequence - that is, there is a SEQUENCE column in the SUITE_ITEM table in order to control the order of execution of test in the suite. If you run a query similar to the following in a worksheet (or as a user-defined report) against your unit test repository, the execution order corresponds to the order of the sequence columns?
SELECT UT_SUITE.NAME AS NOM_SUITE,
UT_TEST.NAME ACE TEST_NAME,
UT_SUITE_ITEMS. SEQUENCE,
UT_SUITE_ITEMS. RUN_START,
UT_SUITE_ITEMS. RUN_TEAR
OF UT_SUITE_ITEMS
JOIN INTERNAL UT_SUITE
ON UT_SUITE_ITEMS. UT_SID = UT_SUITE. UT_SID
JOIN INTERNAL UT_TEST
ON UT_TEST. UT_ID = UT_SUITE_ITEMS. UT_ID
ORDER OF NOM_SUITE, UT_SUITE_ITEMS. SEQUENCE;
In any case, the point of confusion is perhaps alphabetical list of tests in a suite does not expose the order of creation (sequence). So if I have...
1. create 10 tests: test_0, test_2,..., test_9
2. Add all to suite_1 in ascending order.
3. run the above query. It shows the sequence numbers the suffix of test matches
4. remove the tests with a numbered suffix even.
5. Add in trials with pairs suffixes, but in descending order.
6. run the above query. He then shows the tests, in the order 0,..., 9, as tests_ 1, 3, 5, 7, 9, 8, 6, 4, 2, 0
Who help me? I guess listing tests in a suite in the order of creation (sequence) and allowing to make drag & drop reorganization could be more intuitive.
Kind regards
Gary
-
Hey all,.
My goal is to build a UI that will present a tree of all my cases/suites available test and that the user can choose which tests they want to run.
I need a boost in the right direction as to the best way to start a program to build partial test suites while keeping all the functionality of large metadata in my test FU4 adds case. Any suggestions?
Thank you!
BrianBrian,
The docs are not to do this again, but if you take a look at the static class application it allows you to catch pieces of classes or filter them in order to create an "application" which is really a sub group of tests.
For example:
Request.Method (TestTwo, 'testTwo3')
Mike
-
In how-to SQLDeveloper are nested test suites
I've been in SQLDeveloper, write unit tests. I started collecting the unit test suites of tests based on the package/module. I have a test suite (s) to a higher level by calling the package/module test suites. I did it to before JUnit.
When in the Unit Test browser, right-click on the icon of Suites and by selecting the menu item add Suite, only the tests are displayed.
I have reviewed documentation SQLDeveloper and this forum, without finding how to proceed.
Any way to do it? or is it one that has yet to be developed characteristic?
Kind regards
BillHi Bill,
Please try the new unit testing feature.
Unfortunately it is impossible to really nest now test suites. (You can go to the [SQL Developer Exchange | http://apex.oracle.com/pls/otn/f?p=42626:37] and save it as a feature request.)
You can watch the action running from the command line. See: Help-> Table of contents, with SQL Developer-> using the unit tests command line Interface. Again, you'll be able to really nest suites, but you can make batch files to run sets of them. (No. nested results if :())
Brian Jeffries
SQL development team
Maybe you are looking for
-
Satellite 1800: Watch the Sun - how to change the contrast
Hi, satellite 1800 has a dark screen that I can't solve. The images are very visible. The amount of the fine to a screen outside it is a button contrast everywhere?
-
Mac boots, but get error file not recognized on the main drive system
Hi there, I just upgraded my hard drive to a 1 to. I used Carbon Copy clone to create an exact copy of my old 500 GB drive. I started using the new disc, everything seemed fine. But then I went to extend the partition and nothing happened. I clicked
-
Could you please direct me to the Microsoft Documents where I can find detailed specifications and characteristics of the two operating systems: (1) Windows XP Home Edition (2) Windows XP Professional Edition Thank you
-
bad sectors on the hard disk, can't find programs or files
Has worked on my Toshiba laptop and all of a sudden I got these error messages from Windows on bad sectors, cannot find the files... Well, I am unable to find programs or files... well explore works and it seem like windows must work because the comp
-
Request request by expansion ram Server PowerEdge R310 [MS]
Buongiorno, I like the memoria di espandere a server Dell PowerEdge R310 dagli Verizon 4 GB a 32 GB.