gow tham

Greenhorn
+ Follow
since Sep 29, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by gow tham

Hi Camick,

Thank you so much for your response. The link and your comments are highly aid me to get some ideas, but still I confused to do which I want.

Actually, I want to perform pure mouse actions(Clicking buttons, selecting check boxes, and select radio button)based upon the GUI label(name), But all the tutorials are given the example to perform with JFrame which we have created.

These examples makes me confusing.

Honestly I'm not professional developer. My professional is testing(QA), but I believe I have sufficient programming knowledge to understand the code. Please give me some sample that i can perform in eclipse IDE.

Note:

The objective of my question is:

How to perform the ActionEvent() in existed iDE?(The frame have File menu, Edit menu and so on.) Is it possible to do with Java?

Please share your ideas with me.

Thanks in advance.

Santhosh.
10 years ago
Hi,

I want to perform mouse action based upon the label name(nor X and Y co-ordinations).

Example:

In eclipse I want to click File menu based upon the File menu label(label,or It's class name, method() name) using java code.

Is it possible in java? If YES. Please tell me how can i do it.

else give me some ideas how can we achieve this task.


Thanks in advance.

Santhosh
10 years ago
Thanks maneesh. I will read the line.
10 years ago
Hi friends,

Anyone has any ideas regarding on my query?
10 years ago
Thank you maneesh and all for your replies....

I have step-in to my goal....!!!
10 years ago
Thank you so much Maneesh, and Dittmer for your's quick reply.

Maneesh - I will go through the link which is posted by you.


Thanks,
Santhosh.
10 years ago
Hi friends,

I want to create a log file after the ant execution, and It (Log file)should has all the traces that is performed during ant execution.

Please share yours ideas with me to achieve this task.

The following are the successful ant execution:

F:\folders\sasi\junit_ant>ant
Buildfile: F:\folders\sasi\junit_ant\build.xml

clean:
[delete] Deleting directory F:\folders\sasi\junit_ant\class
[delete] Deleting directory F:\folders\sasi\junit_ant\result
[delete] Deleting directory F:\folders\sasi\junit_ant\bin

init:
[mkdir] Created dir: F:\folders\sasi\junit_ant\class
[mkdir] Created dir: F:\folders\sasi\junit_ant\result
[mkdir] Created dir: F:\folders\sasi\junit_ant\bin

compile:
[javac] Compiling 1 source file to F:\folders\sasi\junit_ant\class

jar:
[jar] Building jar: F:\folders\sasi\junit_ant\bin\launch.jar

run:
[java] The integration project closed successfully

main:

BUILD SUCCESSFUL
Total time: 24 seconds

F:\folders\sasi\junit_ant>

I want to store the above traces as log file in particular folder automatically, after the execution.


Please guide me to reach my goal.

Thanks in advance.

Regards,
Santhosh
10 years ago
Hi professionals,

I have created suites using Junit framework and I want to run them using ant. I don't know how to integrate Junit suites inside of ant.

I have tried the following ways to run junit suites in ant:

Steps:

1. I have copied the junit.jar file, and dropped into ANTHOME/lib directory.
2. I restarted my system to replicate the changes in run time(During execution).
3. Unfortunately still all the test cases are getting failed in the suite.

This is my build.xml structure:

<?xml version="1.0" encoding="UTF-8"?>
<project name="junit" default="main" basedir=".">
<property name="src.dir" location="src"/>
<property name="build.dir" location="lib"/>
<property name="class.dir" location="class"/>
<property name="result.dir" location="Result"/>
<path id="build.class.path">
<!--<pathelement location="{$build.dir}\junit-4.10.jar">-->
<fileset dir="${build.dir}">
<include name="**/*.jar"/>
</fileset>
</pathelement>
</path>
<path id="test.class.path">
<pathelement location="${class.dir}"/>
</path>
<target name="clean">
<delete dir="${result.dir}"/>
<delete dir="${class.dir}"/>
</target>
<target name="init">
<mkdir dir="${result.dir}"/>
<mkdir dir="${class.dir}"/>
</target>
<target name="compile" depends="clean,init">
<javac srcdir="${src.dir}" destdir="${class.dir}"
includeantruntime="false" fork=
"true">
<classpath refid="build.class.path"/>
</javac>
</target>
<target name="run" depends="compile"/>
<target name="main" depends="compile">
<junit>
<classpath refid="build.class.path"/>
<classpath refid="test.class.path"/>
<format type="brief" usefile="false"/>
<test name="junitrunner"/>
</junit>
</target>
</project>


The following errors were observed in command line:

F:\folders\sasi\junit_ant>ant
Buildfile: F:\folders\sasi\junit_ant\build.xml

clean:
[delete] Deleting directory F:\folders\sasi\junit_ant\Result
[delete] Deleting directory F:\folders\sasi\junit_ant\class

init:
[mkdir] Created dir: F:\folders\sasi\junit_ant\Result
[mkdir] Created dir: F:\folders\sasi\junit_ant\class

compile:
[javac] Compiling 5 source files to F:\folders\sasi\junit_ant\class
[javac] error: error reading F:\folders\sasi\junit_ant\lib\junit-4.10.jar; c
annot read zip file
[javac] F:\folders\sasi\junit_ant\src\junitrunner.java:2: error: package org
.junit.runner does not exist
[javac] import org.junit.runner.JUnitCore;
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\junitrunner.java:3: error: package org
.junit.runner does not exist
[javac] import org.junit.runner.Result;
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\junitrunner.java:4: error: package org
.junit.runner.notification does not exist
[javac] import org.junit.runner.notification.Failure;
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\junitsuite.java:2: error: package org.
junit.runner does not exist
[javac] import org.junit.runner.RunWith;
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\junitsuite.java:3: error: package org.
junit.runners does not exist
[javac] import org.junit.runners.Suite;
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\junitsuite.java:6: error: cannot find
symbol
[javac] @RunWith(Suite.class)
[javac] ^
[javac] symbol: class RunWith
[javac] F:\folders\sasi\junit_ant\src\junitsuite.java:7: error: package Suit
e does not exist
[javac] @Suite.SuiteClasses({
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\launch.java:8: error: package org.juni
t does not exist
[javac] import org.junit.Test;
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\test1.java:5: error: package org.junit
does not exist
[javac] import org.junit.Test;
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\test1.java:6: error: package org.junit
does not exist
[javac] import static org.junit.Assert.assertEquals;
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\test1.java:6: error: static import onl
y from classes and interfaces
[javac] import static org.junit.Assert.assertEquals;
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\test2.java:3: error: package org.junit
does not exist
[javac] import org.junit.Test;
[javac] ^
[javac] F:\folders\sasi\junit_ant\src\launch.java:11: error: cannot find sym
bol
[javac] @Test
[javac] ^
[javac] symbol: class Test
[javac] location: class launch
[javac] F:\folders\sasi\junit_ant\src\test1.java:13: error: cannot find symb
ol
[javac] @Test
[javac] ^
[javac] symbol: class Test
[javac] location: class test1
[javac] F:\folders\sasi\junit_ant\src\test2.java:8: error: cannot find symbo
l
[javac] @Test
[javac] ^
[javac] symbol: class Test
[javac] location: class test2
[javac] F:\folders\sasi\junit_ant\src\junitrunner.java:8: error: cannot find
symbol
[javac] Result result=JUnitCore.runClasses(junitsuite.class);
[javac] ^
[javac] symbol: class Result
[javac] location: class junitrunner
[javac] F:\folders\sasi\junit_ant\src\junitrunner.java:8: error: cannot find
symbol
[javac] Result result=JUnitCore.runClasses(junitsuite.class);
[javac] ^
[javac] symbol: variable JUnitCore
[javac] location: class junitrunner
[javac] F:\folders\sasi\junit_ant\src\junitrunner.java:9: error: cannot find
symbol
[javac] for(Failure failure:result.getFailures())
[javac] ^
[javac] symbol: class Failure
[javac] location: class junitrunner
[javac] 19 errors

BUILD FAILED
F:\folders\sasi\junit_ant\build.xml:26: Compile failed; see the compiler error o
utput for details.

Total time: 1 second



Please guide me, how to overcome this issue?. How to execute the juint suites inside and outside of Eclipse IDE ?.

Thanks in advance.

Regards,
Santhosh.
10 years ago
okay. thanks dittmer
10 years ago
JSP
is it possible to write mouse macros using build in language(Probably VBscript)? If yes please let me know. is there any good sites to learn mouse macros development using build in language? please guide me to achieve my goal... thanks in advance.
10 years ago
JSP
hi boyarsky, yep I have replaced that jar file. it works now. thank you so much for your response....
10 years ago