Running FlexUnit tests from command line
Sorry if that has been posted before: I searched best I could and nothing came up.
I am interested in building and running my unit tests from the command line so we can add it to a nightly build process.
I am *very* new to all this: basically I picked up Adobe Flash Builder 4 a month ago and I have done *everything* inside that IDE: writing code, building, testing, running.
I looked into at least how to build something from the command line, I found this:
http://help.adobe.com/en_US/flashbuilder/using/WSbde04e3d3e6474c4-59108b2e1215eb9d5e4-8000 .html
Can't get past this error:
Buildfile: /Users/dbanks/build_test.xml
BUILD FAILED
Target "FlexUnitApplication" does not exist in the project "null".
Total time: 0 seconds
Adobe Flash Builder 4:
An error has occurred. See the log file
/Users/dbanks/Documents/Adobe Flash Builder 4/.metadata/.log.
Plus, even if I got this going, I am just building the swf. I also want to run it and capture the output in some meaningful way that can be read/evaluated/acted on.
FWIW, the script/xml I am using to try to build:
build_test.xml:
<?xml version="1.0"?>
<project default="main">
<target name="main">
<fb.exportReleaseBuild project="NightclubMogul" />
</target>
</project>
execute_build_test.sh:
WORKSPACE="$HOME/Documents/AdobeFlashBuilder4"
# works with either FlashBuilder.app or Eclipse.app
"/Applications/AdobeFlashBuilder4" \
--launcher.suppressErrors \
-noSplash \
-application org.eclipse.ant.core.antRunner \
-data "$WORKSPACE" \
-file "/Users/dbanks/build_test.xml" FlexUnitApplication
I am not clear what in here is actually supposed to point to where my project lives: it's off in some directory somewhere. I see that I am pointing to a workspace (Documents/AdobeFlashBuilder4) but when I poke around in there I don't see anything connecting back to the directories where the code lives.
Any help would be great: getting the tests to build from command line, then getting them to run.
C:\>sqlplus @myscript
That would be the easiest variation
C:\>sqlplus user/passwd@tns_alias @myscript
would be an often used variation
And then there is of course the version with parameter passing:
C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
Dunno about MSBuild
Similar Messages
-
Running Oracle Scripts from Command Line
Hi,
How can i run Oracle scripts from command line.
Actually i need to run these scripts from MSBuild before running Unit test projectsC:\>sqlplus @myscript
That would be the easiest variation
C:\>sqlplus user/passwd@tns_alias @myscript
would be an often used variation
And then there is of course the version with parameter passing:
C:\>sqlplus user/passwd@tns_alias @myscript param1 ... paramx
Dunno about MSBuild -
To run a report from command line, when using jdbc-odbc bridge
Hi,
How to run a report from command line, when using jdbc-odbc bridge?
Usually with tns, we do by "rwrun module=<> userid=<user>/<passwd>@tns".
with odbc, we do by "rwrun module=<> userid=<user>/<passwd>@odbc:DSN"
Please specify, what is command line arguments for jdbc-odbc bridge driver?
Environment : Oracle 9i Report Builder on WinNT
Database : Sybase
Regards,
RamananHello Ramanan,
Report Builder : connect JDBC Query in Report Builder is to through Connection Dialog in JDBC Query Editor. User can use a Sign on parameter (can use, default : P_JDBCPDS or can create new) to connect to JDBC Data Source. Connection once made will be mentioned and will be reused through out Reports Builder.
JDBC PDS allows user to connect one or more same or different kind of databases.
While running report through runtime or Server, user can pass the sign on parameter(connection string) value, like any other user parameter.
Syntax for connection string : <username>/<password>@databaseURL . The syntax of database part of connection string depend on the type of JDBC Driver used to connect to Data Source while designing the JDBC Query. databaseURL refer to the location of the database and its format depend on the JDBCPDS river selected in design time while creating the JDBC Query.
rwrun eg :
rwrun report=jdbc_odbc.rdf destype=file desname=output.html desformat=html P_JDBCPDS=scott/tiger@database
Server eg :
http://server.com:8888/servlet/RWServlet?server=MyReportServer+report=jdbc_odbc.rdf+destype=cache+desformat=html+P_JDBCPDS=scott/tiger@database
http :
Please see ORACLE_HOME/reports/conf/jdbcpds.conf for more information.
With Regards
Reports Team -
How to run an executable from command-line
I'm learning how to use the Terminal and I got stuck in a silly thing (I suppose it is). How can I run an executable file from command-line in Terminal?
For example: I have a file named "Hello" in the folder /sample. If I use the ls command (ls sample), I can see the file Hello. Then I move to the directory (cd /sample) and try to run the file Hello (typing "Hello") but I got "command not found" message.
If I drag the Hello file from Finder to Terminal and hit Return, it runs perfectly. And if I type the full path to the file (even if I'm already inside its directory), it also runs.
So, my doubt is if there is any command to run an executable from command-line.
ThanksKJK555 wrote:
Hi VK:
Can you enlighten me on why it's neccessary to do the "./" thingy in OS X when in unix/linux
I never had to resort to doing that?
Kj
I took the trouble of reading *man bash* and it explains the issue. to add the current directory to PATH you need to add an empty path to PATH like this
PATH=$PATH::
you can add it to ~/.bash_profile so that it's executed automatically when you start bash. I suspect the linux system you are talking about had this set up by default or had it added to PATH in /etc/profile which defines PATH globally. -
How to run Endeca Graphs from command Line
Hi,
I would like to know if there is any way to run Endeca Graphs from command line in Windows.
Thank you,The correct way to execute a graph using the command line in windows is.......
Execute the following command from the project folder:
C:\Oracle\Endeca\Discovery\3.1.0\IntegratorETL\configuration\org.eclipse.osgi\bundles\5\1\.cp\lib\bin\clover.bat -plugins "/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/5/1/.cp/lib/plugins;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/6/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/9/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/14/1/.cp/lib/plugins/;C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/21/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/23/1/.cp/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/plugins/com.endeca.latitude_1.0.0/lib/plugins/;/C:/Oracle/Endeca/Discovery/3.1.0/IntegratorETL/configuration/org.eclipse.osgi/bundles/358/1/.cp/lib/plugins/" -noJMX graph\graph_name.grf
Our costumer needed to run some ETL process from ODI and once it finished start a Clover ETL process (automatically). So we created a .bat file witth the above command and then in ODI we created a package with all ETL interfaces and the last step of the package was a OScommand component that excecuted the .bat script from the Endeca's project folder.
Hope you find this post helpfully. -
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. -
[solved]can't run java apps from command line
Every Java program that i've tried to run from command line gives me a error message like this:
augusto java% java Test
Exception in thread "main" java.lang.NoClassDefFoundError: Test
Caused by: java.lang.ClassNotFoundException: Test
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
Could not find the main class: Test. Program will exit.
`java Test.class` doesn't work too.
but, the exact same code work from eclipse, am I missing something?
Some info:
% ls Test*
Test.class Test.java Test.java~
% cat Test.java
public class Test{
public static void main(String[] args){
System.out.println("doesn't work");
% echo $PATH
/home/augusto/.bin:/home/augusto/.bin:/home/augusto/GNUstep/Tools:/opt/GNUstep/Local/Tools:/opt/GNUstep/System/Tools:/bin:/usr/bin:/sbin:/usr/sbin:/opt/java/bin:/opt/java/jre/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core:/opt/qt/bin
Last edited by hack.augusto (2009-10-27 00:57:53)also make sure that you current directory is in your classpath.
eg
export CLASSPATH=".:$CLASSPATH"
java Test
your issue is more likely to be classpath related, as java doesn't read the path variable, and the java executable is found
Last edited by bruce (2009-10-27 01:02:51) -
How to run the JNLP from Command Line
Hi All,
how to run the JNLP file from the remote machine from our command line. I have requirement to run this JNLP file in java 1.4.2 version. Can any one tell me the procedure or the steps that are needed to run this file at command prompt.
Regards,
Prasanna.
Edited by: VPrasanna on May 19, 2008 4:43 AM>
I am getting "**java.security.AccessControlException: access denied (java.net.SocketPermission wwwgate0.mot.com:1080 connect,resolve)**" when I start the Web Start Client. >This seems like a largely separate problem to running the JNLP from the command line. It might have been better to end this thread (assign the dukes) and start a new one.
>
..Can you help me in resolving this issue. >However, I suspect I can guess the problem.
If this app. is normally hosted on wwwgate0.mot.com then it can 'phone home' to the server without further permission, but if you are running it from the command line, that might not be the codebase anymore.
If you wish to do 'local testing' of such an app., I would recommend setting up a server like Tomcat on the local machine, and serving the test app. directly off that.
>
..Its urgent...>Sun offers a number of options for urgent matters, such as support tickets. Perhaps you should look into one of those. -
Problem running DNG Converter from command line in Windows XP
I'm a frustrated user trying to run Adobe DNG converter from the Windows command line - more specifically from a batch file.
- Am reasonably conversant with writing batch files
- Have read the PDF file provided by Adobe
I just can't figure the correct syntax for adding the command line parameters and, unfortunately, the Adobe PDF file doesn't have verbose examples for idiots like me. Nor can I find any such examples on the Net, or any discussion of this problem in the forums.
The Adobe PDF instructions state...
"The parameter list includes the conversion options you want to use, followed by the names of the files to convert."
As there is no switch to prefix 'the names of the files to convert' I assume I just leave a space and include the path to the source files at the end of the parameter list?
Here is the batch file line I am trying to use...
"C:\Program Files\Adobe\Adobe DNG Converter.exe [parameter list]"
Where I want to specify in the [parameter list] that...
(a) The destination directory (-d <directory> parameter) is c:\DNG_files
(b) And the source files are in directory c:\RAW_files
Here is the batch line with the parameters entered...
"C:\Program Files\Adobe\Adobe DNG Converter.exe -dC:\RAW_files c:\DNG_files"
I've tried variations of this with space between -d and C:\RAW_files and C:\DNG_files\*.* for the source files parameter.
I just keep getting DOS erros like "The filename, directory name or volume label syntax is incorrect"
Can anybody help me. I'm clueless how to solve the problem. :-(
I'm running DNG COnverter version 4.2
Thanks in anticipation.
RobThanks for responding G Sch.
LOL. Well this lemming doesn't habitually rename .exe files (e.g. Adobe DNG Converter.exe) to a non-spaced alternative either! (Adobe_DNG_Converter.exe)
Still no luck...
*** Here is my batch file...
REM Copy and DNG-convert files from CF
CD c:\RAW_files
dir c:\RAW_files
"C:\Program Files\Adobe\Adobe DNG Converter.exe" -d C:\DNG_files
dir c:\DNG_files
pause
***Here's the DOS shell output...
<<BEGINS>>
C:\RAW_files>dir c:\RAW_files
Volume in drive C is Local Disk
Volume Serial Number is D084-58ED
Directory of c:\RAW_files
12/03/2008 10:29 AM <DIR> .
12/03/2008 10:29 AM <DIR> ..
11/03/2008 07:00 AM 10,661,632 _3110455.ORF
11/03/2008 07:01 AM 10,661,632 _3110457.ORF
11/03/2008 07:01 AM 10,661,632 _3110458.ORF
11/03/2008 07:02 AM 10,661,632 _3110460.ORF
11/03/2008 07:02 AM 10,661,632 _3110461.ORF
11/03/2008 07:03 AM 10,661,632 _3110462.ORF
11/03/2008 07:03 AM 10,661,632 _3110463.ORF
11/03/2008 07:04 AM 10,661,632 _3110464.ORF
11/03/2008 07:04 AM 10,661,632 _3110465.ORF
9 File(s) 95,954,688 bytes
2 Dir(s) 2,619,731,968 bytes free
C:\RAW_files>"C:\Program Files\Adobe\Adobe DNG Converter.exe" -d C:\DNG_files
C:\RAW_files>dir c:\DNG_files
Volume in drive C is Local Disk
Volume Serial Number is D084-58ED
Directory of c:\DNG_files
12/03/2008 02:46 PM <DIR> .
12/03/2008 02:46 PM <DIR> ..
0 File(s) 0 bytes
2 Dir(s) 2,619,731,968 bytes free
C:\RAW_files>pause
Press any key to continue . . .
<<ENDS>>
As you can see (a) Source files exist(b) DNG command line runs without generating an error (c) no output files in destination.
DNG Converter did not run.
If I remove everything after the command (i.e. the parameter list stuff) it fires up DNG Converter in interactive mode. Not what I'm after.
Any other thoughts on what the problem is?
Thank you.
Rob -
Run PDF File from command line and goto a bookmark
Hi,
I need to open a pdf file vi command line (WinXP / Win7).
Till this I do not have a problem.
But I need to go to a bookmark in the file direct after opening the file.
I tried "acrord23.exe /a nameddest=BOOKMARK file.pdf" but this opened only the file.
"acrord23.exe /a zoom=50 file.pdf" works fine.
Is there another parameter to go to a bookmark after open a file?
Where is my mistake?
Thanks in advance
Regards
Marc
Message was edited by: mgemmerich - reason: typoHi,
I read the PDF Open Parameters reference. So I tried the nameddest. I think the nameddest is a bookmark, or is this wrong?
The background is, that we have the dokumentation for our application in word. So we save the word as pdf. Each chapter is now a bookmark.
In the application we want to call the pdf and jump to the bookmark. Each frame were you can call "help" is a chapter/bookmark.
Or is there another way to do this?
Regards
Marc -
Running Shell script from command line
Hi,
I am getting a Exception in thread "main" java.lang.NoClassDefFoundError: TestRuntime/java error when I run the following code on my linnux box...can anyone please help
import java.io.*;
public class TestRuntime {
public static void main(String args[]) {
Runtime runtime = Runtime.getRuntime(); //get runtime information
try {
Process Child = runtime.exec("/usr/bin/ksh"); // execute command
BufferedWriter outCommand = new BufferedWriter(new OutputStreamWriter(Child.getOutputStream()));
outCommand.write("/home/mypath/tesh.csh");
outCommand.flush();
try {
Child.waitFor(); // wait for command to complete
} catch (InterruptedException e) { // handle waitFor failure
System.out.println("ERROR: waitFor failure");
System.exit(10); // exit application with exit code 10
} catch (IOException e) { // handle exec failure
System.out.println("ERROR: exec failure" + e);
System.exit(11); // exit application with exit code 11
}If I'm reading your code correctly, you're starting a Korn shell session, then executing your C shell script as if you were at at the session window's prompt. If that is correct, you haven't caused your standard out (stdout) to hit ENTER yet. I'm not an expert, but I hope this works for you.
Your code:
Process Child = runtime.exec("/usr/bin/ksh"); // execute command
BufferedWriter outCommand = new BufferedWriter(new OutputStreamWriter(Child.getOutputStream()));
outCommand.write("/home/mypath/tesh.csh");
outCommand.flush();I think you need to enter one extra line before the flush():
Process Child = runtime.exec("/usr/bin/ksh"); // execute command
BufferedWriter outCommand = new BufferedWriter(new OutputStreamWriter(Child.getOutputStream()));
outCommand.write("/home/mypath/tesh.csh");
outCommand.newLine(); // hit ENTER
outCommand.flush();P.S. If you're running this script and your Java program from the same UNIX machine, you could just execute the shell script inside the runtime.exec() call. -
Can not run flexunit tests from ant
Hello,
I'm trying to script test execution in order to integrate tests in Jenkins. I followed the wiki article here http://docs.flexunit.org/index.php?title=Ant_Task
The tests run successfully with Flash Builder but not with ant. I'm getting the following error:
Error
VerifyError: Error #1014: The class flash.filesystem::FileStream could not be found
I think that this occurs because I'm using the flashplayer_11 as suggested in the wiki article and flashplayer does not load the airglobal.swc component.
I noticed that Flash Builder launches the ADL.exe process; whereas flexunit within ant tests launches flashplayer.exe.
Should I use ADL.exe with flexunit instead of Flash player ? In that case how to use adl argument in flexunnit ? I saw that Richard Lee has committed a fix to make flexunit support ADL arguments, how ?
Is there a solution to my problem ?
Thanks in advance.
YgorThank you Michael,
I resolved my problem by adding the the player attribute in the flexunit task as follow:
<flexunit
player="air"
workingDir="${bin.loc}"
toDir="${report.loc}"
haltonfailure="false"
verbose="true"
localTrusted="true"
> -
Help me run a class from command line
I have a class called myTest which uses mysql-connector-java xxx. This mysql-connector-java xxx is placed within the same directory just in case, so please tell me how I can ran.
What I have read so far suggests the following:
java -classpath ,;mysql-connector-java myTest
This is the result from the above:
Exception in thread "main" java.lang.NoClassDefFoundError: myTest ....
Do you know why "-classpath ;" ?
Here is my classpath environment:
C:\PROGRA~1\Java\jdk1.6.0\lib;C:\PROGRA~1\Java\jdk1.6.0\lib;C:\PROGRA~1\JMF21~1.1\lib\sound.jar;C:\PROGRA~1\JMF21~1.1\lib\jmf.jar;C:\PROGRA~1\JMF21~1.1\lib;C:\WINDOWS\java\classes;C:\PROGRA~1\Java\jdk1.6.0\lib;c:\jtapi;C:\mysql-connector-java-5.1.0\mysql-connector-java.jar;
I have no other problems i.e I can ran HelloWorldApp with :
Java HelloWorldApp and it runs from within the same directory.Assuming you are running the java command from teh same dir the file is in:
java -classpath .;%CLASSPATH% myTestshould run fine. Of course, make sure you have compiled it first with
javac -classpath .;%CLASSPATH% myTest.java~Tim -
Acrobat 9 - Use Optimize PDF from command-line or batch
one can use the functionality optimize pdf from the command line or a batch script?
thanksI found the solution. With the batch sequence i create the pdf optimization, and use the plug-in Autobatchtool (from the partner evermap) to run this batch from command-line. Thanks for you help
-
Error while running ADF-BC Test Suite from command line
Hi,
I have created a separate test project containing the Test Suite for the Model componenet of my ADF-BC application.
I need to run this test project separately from jmeter.
The tests run fine from Jdev, But when I package the test project into a jar and try to run from command line, I get the following error:
java.lang.NoClassDefFoundError: oracle/jbo/ApplicationModule
at com.oracle.cs.cap.module.applicationModule.ServiceAMFixture.<init>(ServiceAMFixture.java:36)
at com.oracle.cs.cap.module.applicationModule.ServiceAMFixture.<clinit>(ServiceAMFixture.java:15)
at com.oracle.cs.cap.module.view.EntitlementReportDurationViewVO.EntitlementReportDurationViewVOTest.<init>(EntitlementReportDurationViewVOTest.java:11)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.junit.internal.runners.JUnit4ClassRunner.createTest(JUnit4ClassRunner.java:72)
at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:79)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)
at org.junit.runners.Suite.access$000(Suite.java:26)
at org.junit.runners.Suite$1.run(Suite.java:93)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.runners.Suite.run(Suite.java:91)
at org.junit.internal.runners.CompositeRunner.runChildren(CompositeRunner.java:33)
at org.junit.internal.runners.CompositeRunner.run(CompositeRunner.java:28)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at org.junit.runner.JUnitCore.run(JUnitCore.java:109)
at org.junit.runner.JUnitCore.run(JUnitCore.java:100)
at org.junit.runner.JUnitCore.runMain(JUnitCore.java:81)
at org.junit.runner.JUnitCore.main(JUnitCore.java:44)
Caused by: java.lang.ClassNotFoundException: oracle.jbo.ApplicationModule
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 27 more
The Test project jar is created as ADF Library JAR File with Model.jpr as the dependent project. This takes care of project class dependencies
All the adf library dependencies are added to the manifest file of the Test Project jar referring to a location lib/ in the jar file directory.
I tried creating the ApplicationModule using both Configuration class (Configuration.createRootApplicationModule) as well as using the JDBC Connection String but both fail when I run the test cases independently from jmeter.
Anybody came across such an error? Please help.
Thanks,
SapnaHi Timo,
Im using JDev version 11.1.1.6.0.
I checked the class path on the jdev console. All the library references are mentioned in the manifest.mf classpath of the test project like below:
Manifest-Version: 1.0
Class-Path: lib/identitystore.jar
lib/adfm.jar
lib/groovy-all-1.6.3.jar
lib/adftransactionsdt.jar
lib/adf-dt-at-rt.jar
lib/adfdt_common.jar
lib/adflibrary.jar
lib/xmlparserv2.jar
lib/db-ca.jar
lib/jdev-cm.jar
lib/ojmisc.jar
lib/commons-el.jar
lib/jsp-el-api.jar
etc...
So I expect the library references should be resolved looking at the manifest file.
Another set of entries that I see in the jdev classpath are related to the Model project which is under test.
-classpath
D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\.adf;
D:\CurrentProject_1\16_7_2013_3pm\11_7_2013\Model\classes;
How do I put these entries into my class path? Will it be sufficient if I add the Model.jar into my test project classpath?
Thanks,
Sapna
Maybe you are looking for
-
How to change the font of a cell in an Excel spreadsheet from within LabVIEW?
The Font property appears to be a Read-Only property and I can not find another ActiveX Property or Method that seems to do the job.
-
Hi, Hopefully this is in the right place. I have transferred some recordings from my digibox to my Mac, which start life as a ts format. I've converted these using iSquint to mpeg-4. I can view the new file absolutely fine on VLC Media Player in the
-
Hi ! I have a problem(...) I am posting creditcardnumbers to a secure site using a form. Works fine, but when I'm trying to create the same URL using URLConnection it looks like the receiver can't handle the request. This is the form : <form action="
-
Can somebody explain the interaction between a Frame and the program that opens it? I have a class Win extending Frame. It has a WindowListener doing dispose() on WindowClosing. I have a main method that looks like this: Win w = new Win(); read from
-
So I am gonna try this because I know others haven't got a response they have liked or helped- I have a 3GS, running iOS on my iPhone 3GS, but still am having issues with the GPS, I am sure others are still having this issue. I found this thread awhi