Unit test: Want to run test case after async test function?
Hi,
On flash builder i decide to do unit test for my .as class. I did few unit test. Working fine. But now i want to write unit test for the following case:
I wrote a [Test(async)] function to find the loading class working fine or not.Its working fine.
On load complete i am able to read the data and store the data on the test class variables.
I want to run all other [Test] case function after completion of the xml load function.How to do that?
Thanks,
Siva
Hi,
On flash builder i decide to do unit test for my .as class. I did few unit test. Working fine. But now i want to write unit test for the following case:
I wrote a [Test(async)] function to find the loading class working fine or not.Its working fine.
On load complete i am able to read the data and store the data on the test class variables.
I want to run all other [Test] case function after completion of the xml load function.How to do that?
Thanks,
Siva
Similar Messages
-
Want to run MII-TOOL after card is UP
Hi
We run ZFD 4.01 IR 7
I want to execute a script after the card is UP. I added the following line
in the ifcfg-eth0 of linux3.tgz
POST_UP_SCRIPT=forcespeed
The script is executable and he work from the prompt but not after card is
UP.
I want to run forcespeed each time a nic come UP.
-------forcespeed script--------
#!/bin/bash
mii-tool -F 100baseTx-FD eth0
Any idea how I should to this?
Regards,
Eric Bellavance
Ministere des FinancesEric,
It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
- Check all of the other support tools and options available at http://support.novell.com in both the "free product support" and "paid product support" drop down boxes.
- You could also try posting your message again. Make sure it is posted in the correct newsgroup. (http://support.novell.com/forums)
If this is a reply to a duplicate posting, please ignore and accept our apologies and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
Hardware self test won't run ??
I want to run the apple hardware self test on our iMac OS 10.10.2 Yoshemite. However when I switch on holding the D key down the self test does not load, the computer just starts up as normal. Any other way to so the hardware test or resolve the issue ?
Cheers
Brian.Brian,
You will need the original install discs that shipped with the computer, if you cannot locate them call AppleCare and for a nominal fee they will replace them. You will need the computers serial number and a credit card. If you don't know AppleCare's number start by clicking AppleCare Contact Info -
Hello,
I would like to now how to proceed to test a delegate class that is taking an IResponder as method parameter.
For exemple :
LoginDelegate.as (simplified version) :
public function login( responder : IResponder, username : String, password : String ) : void
var s : SomeService = new SomeService();
s.addEventListener( ResultEvent.RESULT, responder.result );
s.addEventListener( FaultEvent.FAULT, responder.fault );
s.login( username, password );
As you can see, the delegate communicate with some backend service and then calls the provided responder methods.
I tried to use Async.asyncResponder without luck:
[Before(async)]
public function runBeforeAsyncTest():void
var d : LoginDelegate = new LoginDelegate();
var responder : Responder = new Responder(result,fault);
Async.asyncResponder(this, responder, 5000);
d.login(responder, "someuser", "somepass");
public function result(data:Object):void
trace("result");
public function fault(info:Object):void
trace("fault");
[Test]
public function testLoginFail():void
trace("testLoginFail")
Assert.assertEquals("5", 5);
It goes in result method, then It fails with :
testLoginFail Error: Timeout Occurred before expected event
Can someone please tell me how to test my delegate properly
Thank you in advanceOk this seems to work, but I don't know if it is considered best practice :
(I would still like to hear from someone used to test delegate)
[Before(async)]
public function runBeforeAsyncTest():void
delegate = new LoginDelegate();
user = null;
[After(async)]
public function runAfterAsyncTest():void
delegate = null;
[Test(async)]
public function testLoginPass():void
var responder : IResponder = Async.asyncResponder(this, new Responder(result,fault), 5000);
delegate.login(responder, VALID_USER_ID, VALID_USER_PASS);
public function result(data:Object):void
user = data as UserDTO;
Assert.assertTrue( user is UserDTO && user.id.toString() == VALID_USER_ID );
public function fault(info:Object):void
Assert.assertNull(user); -
Running Unit Test from test manager that run bat file from command line
Hi ,
I am trying to run Jsystem (java framewotk) from command line using runScenario.bat thru unit test that i associated to test in test manager.
the idea is that when i ran the automated test from MTM - it will run the the unit test that will run the appropriate test case in java.
i wrote the code like this :
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTestProject3
[TestClass]
public class UnitTest1
[TestMethod]
public void TestMethod1()
try
String command = "c:\\JSYSTEM\\runner\\runScenario.bat
c:\\Users\\ryeshua\\Source\\Workspaces\\Auto1\\my-tests-project\\target\\classes scenarios\\feature1 RoeySetup.xml ";
System.Diagnostics.ProcessStartInfo procStartInfo =
new System.Diagnostics.ProcessStartInfo("cmd", "/c " + command);
procStartInfo.RedirectStandardOutput = true;
procStartInfo.UseShellExecute = false;
//procStartInfo.CreateNoWindow = true;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo = procStartInfo;
proc.Start();
string result = proc.StandardOutput.ReadToEnd();
Console.WriteLine(result);
catch (Exception objException)
// Log the exception
and when i ran it from visual studio it worked perfect. and update the Jsystem logs of the junit test in the jsystem/runner/log folder.
but when i added it to associated test and ran it from MTM - it pass but it does not update the logs in jsystem folder.
the problem that i dont know what is not working. i cant see the output of it when i ran from mtm but can see when i ran from VS.
i am using VS 2013 Pro with MTM 2013.
please advice
RoeyHi Roey,
Thank you for posting in MSDN forum.
Based on your issue, could you please tell me how you generate the log file under the jsystem folder?
Generally, I know that when we run unit test from VS IDE, the file will be saved into the local machine. But when we run unit test from MTM, the unit test method will be run on the test agent machine, so the file will be saved into the test agent machine.
Therefore, I suggest you could check if you did not see the updated logs file in jsystem folder on the test agent machine.
In addition, I suggest you could try to copy this unit test project on this test agent machine and then run the unit test method using mstest.exe in command line and then check if you can update the logs file.
https://msdn.microsoft.com/en-us/library/ms182489.aspx?f=255&MSPPError=-2147217396
If you have any updated message about this issue, please tell me.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I have a slow boot up, so I wanted to run Apple Hardware Test.
AHT never starts based on http://support.apple.com/kb/HT1509 but AHT does not come up. Tried it 20 times, no success. I have iMac 2011 w/ Lion. What should I do.Hi Titan,
My system didn came with the disk. I have used disk utility to repair the disk, because it showed a boot sector problem during disk verification process. I started disk utility using Cmd+R at startup. The problem was fixed. Not the disk verifies without error.
However, the initial gery screen at startup still take more than two minutes after with the apple icon appears.
Thanks. -
I want to run Apple Hardware Text but can't find it on any CD's. I bought my iMac in 2009. It came with 10.4. Apple Hardware Test is not on the installation disk. Should I have it? Where can I find it? I"m now running 10.7.4.
The disc plainly state:
To use the AHT, hold down the D key as the computer starts up.
Works here. However, there was an issue with installing Lion that screwed this process up.
Mount disc 2, run this command in the Terminal app, OPTION-click & hold Finder's Dock icon, and select RELAUNCH:
defaults write com.apple.finder AppleShowAllFiles 1
That unhides all hidden files/folders.
Now, drill down to /"Applications Install\ Disc"/System/Library/CoreServices/ and drag the .diagnostics folder into your Lion boot volume's /System/Library/CoreServices/ folder. That might require you to authenticate to copy the folder into the CoreServices subfolder.
Run this command to hide the normally hidden files/folders and RELAUNCH the Finder again.
defaults write com.apple.finder AppleShowAllFiles 0
This should allow the machine to boot into AHT when restarting and holding down the D key.
If that doesn't do the trick, run this command in the Terminal app:
sudo chown -R root:wheel /System/Library/CoreServices/.diagnostics
At the Password: prompt, carefully type in your admin password, since nothing shows up on the screen, and hit the return key. Then, try another restart, holding down the D key. -
I want to run automation test in multiple device say iphone and ipad or two iphone device Is it possible.I have done automation testing using UIAutomation and get it running from iphone device
plzzz reply to this question as soon as possible
-
''Duplicate post, continue here - [https://support.mozilla.com/en-US/questions/804278]''
wanting to run litmus on server2008r2 i can not report this OS , do you NOT wish testing firefox on servers ?'''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
''(If you're not using it, switch to the Default theme.)''
* On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
* On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
* On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
* Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
[[Image:FirefoxSafeMode|width=520]]
''Once you get the pop-up, just select "'Start in Safe Mode"''
[[Image:Safe Mode Fx 15 - Win]]
'''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
Please report back soon. -
I want my Test Sockets will run in loop
I want my Test Sockets will run in loop. I use BatchModel, sequential batch mode.
Now it works so:
process setup
main sequence of Socket 1...
main sequence of Socket 2...
main sequence of Socket N...
process cleanup
I want to do so:
process setup
loop 1
main sequence of Socket 1...
main sequence of Socket 2...
main sequence of Socket N...
loop 2
main sequence of Socket 1...
main sequence of Socket 2...
main sequence of Socket N...
loop N
main sequence of Socket 1...
main sequence of Socket 2...
main sequence of Socket N...
process cleanup
How can I do it ?Marta,
Try using the PreUUTLoop and PostUUTLoop callbacks instead of ProcessSetup and ProcessCleanup.
Allen P.
NI -
How can I perform performance runs of a set of tests and compare results across runs?
I have automated some scenarios using VS unit test frame work for a desktop application. I can see when running I get timing for how long the test takes.
What I'd like to do (using the test frame work or another tool) is run these scenarios before and after a performance fix and get an easy to read delta report on how much faster or slower each scenario got.
How can I achieve this with Visual Studio?Hi Chris,
Thank you for posting in the MSDN forum.
If you want to collect the performance for the test code directly. Maybe the Profiler tool would be helpful for you.
Like this MSDN document:
http://msdn.microsoft.com/en-us/library/hh270865.aspx
To diagnose why a test method is taking too much time, select the method in Test Explorer and then choose Profile on the context menu. See
Analyzing Application Performance by Using Profiling Tools.
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Revision: 5137
Author: [email protected]
Date: 2009-03-02 10:28:59 -0800 (Mon, 02 Mar 2009)
Log Message:
Fix failing security tests on BlazeDS/trunk by using a remote object to invalidate the FlexSession at the end of each test method which should cause each test method to run with a new/clean session. It looks like some test methods were leaving some things in a bad state which was causing the next test that ran to fail. These may be legitimate bugs/issues so we should investigate further to see what sequence of events gets things into a bad state but for these tests we want all of the test methods to run in isolation.
Modified Paths:
blazeds/trunk/qa/apps/qa-manual/WEB-INF/flex/services-config.mods.xml
blazeds/trunk/qa/apps/qa-regress/WEB-INF/flex/remoting-config.mods.xml
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-amf/JMSAuthSendSubscribeConstraintTest.mxml
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-amf/MessagingAuthProSendTest.mxml
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-http/JMSAuthSendSubscribeConstraintTest.mxml
blazeds/trunk/qa/apps/qa-regress/testsuites/mxunit/tests/messagingService/security/stream ing-http/MessagingAuthProSendTest.mxml
Added Paths:
blazeds/trunk/qa/apps/qa-regress/WEB-INF/src/qa/messaging/SessionManager.javaIn general theory, one now has the Edit button for their posts, until someone/anyone Replies to it. I've had Edit available for weeks, as opposed to the old forum's ~ 30 mins.
That, however, is in theory. I've posted, and immediately seen something that needed editing, only to find NO Replies, yet the Edit button is no longer available, only seconds later. Still, in that same thread, I'd have the Edit button from older posts, to which there had also been no Replies even after several days/weeks. Found one that had to be over a month old, and Edit was still there.
Do not know the why/how of this behavior. At first, I thought that maybe there WAS a Reply, that "ate" my Edit button, but had not Refreshed on my screen. Refresh still showed no Replies, just no Edit either. In those cases, I just Reply and mention the [Edit].
Also, it seems that the buttons get very scrambled at times, and Refresh does not always clear that up. I end up clicking where I "think" the right button should be and hope for the best. Seems that when the buttons do bunch up they can appear at random around the page, often three atop one another, and maybe one way the heck out in left-field.
While I'm on a role, it would be nice to be able to switch between Flattened and Threaded Views on the fly. Each has a use, and having to go to Options and then come back down to the thread is a very slow process. Jive is probably incapable of this, but I can dream.
Hunt -
MSTest not running in TFS build but tests works fine locally in visual studio
Hi Team,
I have 18 unit tests in my test project wanted to run in TFS build. But build says no tests to execute. please find the below details and images for more info.
Even MSTest command is not working.
TFS : 2010
BUild Server has visual studio 2010 ultimate with SP1.
Thanks in Advance,
Shree
$hreeHi Shree,
I am glad to hear you resolved the issue. Thanks for sharing your experience here, it is good to other members who experience the same issue in the community.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Revision: 13744
Revision: 13744
Author: [email protected]
Date: 2010-01-25 01:14:09 -0800 (Mon, 25 Jan 2010)
Log Message:
Bug: BLZ-481 - AMFConnection JUnit test do not run properly as part of checkintests on Mac (and Windows?)
QA: No
Doc: No
Checkintests: Pass
Details:
-Don't start the server before unit task, unit task already checks if the server is not running and starts the server.
-Don't stop the server after FlexUnit tests, JUnit tests need the server running, and they will stop the server after they are done.
Ticket Links:
http://bugs.adobe.com/jira/browse/BLZ-481
Modified Paths:
blazeds/trunk/build.xml
blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/build.xmlTony,
It appears that in the past few days you have not received a response to your
posting. That concerns us, and has triggered this automated reply.
Has your problem been resolved? If not, you might try one of the following options:
- Do a search of our knowledgebase at http://support.novell.com/search/kb_index.jsp
- Check all of the other support tools and options available at
http://support.novell.com.
- You could also try posting your message again. Make sure it is posted in the
correct newsgroup. (http://support.novell.com/forums)
Be sure to read the forum FAQ about what to expect in the way of responses:
http://support.novell.com/forums/faq_general.html
If this is a reply to a duplicate posting, please ignore and accept our apologies
and rest assured we will issue a stern reprimand to our posting bot.
Good luck!
Your Novell Product Support Forums Team
http://support.novell.com/forums/ -
Want to run a program called CCleanup. Firefox has to be shut down prior to using it. How do I turn it off and then on again after I run CCleanup?
I do not use the product, but:
Roboform 7 is compatible with Firefox 5: http://www.roboform.com/support/news
You may be eligible for a free Roboform 6 to 7 upgrade: https://secure.roboform.com/php/pums/pums_usrlogfrm_upgrade.php
<br />
<br />
'''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
*Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
#'''''Check your plugin versions''''' on either of the following links':
#*http://www.mozilla.com/en-US/plugincheck/
#*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
#*'''Note: plugin check page does not have information on all plugin versions'''
#*There are plugin specific testing links available from this page:
#**http://kb.mozillazine.org/Testing_plugins
#'''Update the [[Java]] plugin''' to the latest version.
#*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
#**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
#*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
#* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
#* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
#*Java Test: http://www.java.com/en/download/help/testvm.xml
Maybe you are looking for
-
JRE doesn't find the main class inside a JAR archive file
Hello everybody, I've written a small application in Java, using NetBeans. Running my application inside NetBeans works fine, but I can't run it from the console or by double clicking the jar file. Running it from the console I get the following erro
-
-How my hard disk is broken -Does this happen to all mac products mainly? -what can i do in the future to prevent the problem from happening again
-
Is it possible to start an add-in from a macro?
I'm working with Visual Studio 2010 for a research purpose. I'm looking for the possibility where an add-in could be started by a macro. A macro could be started by an add-in simply. But the problem is vice-versa. Please share your ideas, and especia
-
Can i increase my ram capacity on macbook air 11 inch
can i increase my ram capacity on my macbook air 11 inch
-
Hi, I am trying to set the property node of "Waveform chart" to History data. but the problem is when I click the property node button I find options only till UPDATE MODE but I dont find the option History data. Regards