Maven is better. The Ant script is not really maintained. Since the 0.7.0
tar ball is a release package and you may have problem to update artifacts
because Maven thinks release artifact will not be updated once it gets hold
of one copy, which is actual true. I would suggest you to check out 0.8.0
snapshot code and add your code there.

Thanks,

Jian

On Fri, Jul 16, 2010 at 4:34 PM, Manoj Chavan <[email protected]>wrote:

> Ok will use ANT... thanks.
>
> Manoj
>
>
> *From:* Jian Fang <[email protected]>
> *To:* [email protected]
> *Sent:* Fri, July 16, 2010 12:48:02 PM
>
> *Subject:* Re: Selenium waitForAjax () question?
>
> No, build.xml is for ant build. Do you have the following Maven repository
> in your .m2/settings.xml?
>
>             <repositories>
>                  <repository>
>                     <id>kungfuters-public-snapshots-repo</id>
>                     <name>Kungfuters.org Public Snapshot Repository</name>
>                     <releases>
>                         <enabled>false</enabled>
>                     </releases>
>                     <snapshots>
>                         <enabled>true</enabled>
>                     </snapshots>
>
> http://maven.kungfuters.org/content/repositories/releases
>                 </repository>
>                 <repository>
>                     <id>kungfuters-public-releases-repo</id>
>                     <name>Kungfuters.org Public Releases Repository</name>
>                     <releases>
>                         <enabled>true</enabled>
>                     </releases>
>                     <snapshots>
>                         <enabled>false</enabled>
>                     </snapshots>
>                     <url>
> http://maven.kungfuters.org/content/repositories/releases</url>
>                 </repository>
>                <repository>
>                     <id>kungfuters-thirdparty-releases-repo</id>
>                     <name>Kungfuters.org Third Party Releases
> Repository</name>
>                     <releases>
>                         <enabled>true</enabled>
>                     </releases>
>                     <snapshots>
>                         <enabled>false</enabled>
>                     </snapshots>
>
> http://maven.kungfuters.org/content/repositories/thirdparty
>                 </repository>
>             </repositories>
>
> You can also put the above repository to your maven pom.xml.
>
> Thanks,
>
> Jian
>
> On Fri, Jul 16, 2010 at 3:22 PM, Manoj Chavan <[email protected]>wrote:
>
>> When build the package I am getting artifact not found.. error.. what do I
>> need to change in the build.xml?
>>
>> c:\tellurium-0.7.0\sources\core>mvn clean package
>> mvn clean package
>> [INFO] Scanning for projects...
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Building Tellurium Core
>> [INFO]    task-segment: [clean, package]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] [clean:clean {execution: default-clean}]
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.pom
>>
>> Downloading:
>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.3/maven-resources-plugin-2.3.jar
>>
>> Downloading:
>> http://archiva.openqa.org/repository/releases/org/telluriumsource/tellurium-udl/0.7.0/tellurium-udl-0.7.0.pom
>> [INFO] Unable to find resource
>> 'org.telluriumsource:tellurium-udl:pom:0.7.0' in repository
>> openqa-release-repo (http://archiva.openqa.org/repository/releases)
>> Downloading:
>> http://google-caja.googlecode.com/svn/maven/org/telluriumsource/tellurium-udl/0.7.0/tellurium-udl-0.7.0.pom
>> [INFO] Unable to find resource
>> 'org.telluriumsource:tellurium-udl:pom:0.7.0' in repository caja (
>> http://google-caja.googlecode.com/svn/maven)
>> Downloading:
>> http://maven.kungfuters.org/content/repositories/thirdparty/org/telluriumsource/tellurium-udl/0.7.0/tellurium-udl-0.7.0.pom
>> [INFO] Unable to find resource
>> 'org.telluriumsource:tellurium-udl:pom:0.7.0' in repository
>> kungfuters-thirdparty-releases-repo (
>> http://maven.kungfuters.org/content/repositories/thirdparty)
>> Downloading:
>> http://repo1.maven.org/maven2/org/telluriumsource/tellurium-udl/0.7.0/tellurium-udl-0.7.0.pom
>> [INFO] Unable to find resource
>> 'org.telluriumsource:tellurium-udl:pom:0.7.0' in repository central (
>> http://repo1.maven.org/maven2)
>> Downloading:
>> http://archiva.openqa.org/repository/releases/org/telluriumsource/tellurium-udl/0.7.0/tellurium-udl-0.7.0.jar
>> [INFO] Unable to find resource
>> 'org.telluriumsource:tellurium-udl:jar:0.7.0' in repository
>> openqa-release-repo (http://archiva.openqa.org/repository/releases)
>> Downloading:
>> http://google-caja.googlecode.com/svn/maven/org/telluriumsource/tellurium-udl/0.7.0/tellurium-udl-0.7.0.jar
>> [INFO] Unable to find resource
>> 'org.telluriumsource:tellurium-udl:jar:0.7.0' in repository caja (
>> http://google-caja.googlecode.com/svn/maven)
>> Downloading:
>> http://maven.kungfuters.org/content/repositories/thirdparty/org/telluriumsource/tellurium-udl/0.7.0/tellurium-udl-0.7.0.jar
>> [INFO] Unable to find resource
>> 'org.telluriumsource:tellurium-udl:jar:0.7.0' in repository
>> kungfuters-thirdparty-releases-repo (
>> http://maven.kungfuters.org/content/repositories/thirdparty)
>> Downloading:
>> http://repo1.maven.org/maven2/org/telluriumsource/tellurium-udl/0.7.0/tellurium-udl-0.7.0.jar
>> [INFO] Unable to find resource
>> 'org.telluriumsource:tellurium-udl:jar:0.7.0' in repository central (
>> http://repo1.maven.org/maven2)
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Failed to resolve artifact.
>>
>> Missing:
>> ----------
>> 1) org.telluriumsource:tellurium-udl:jar:0.7.0
>>
>>   Try downloading the file manually from the project website.
>>
>>   Then, install it using the command:
>>       mvn install:install-file -DgroupId=org.telluriumsource
>> -DartifactId=tellurium-udl -Dversion=0.7.0 -Dpackaging=jar
>> -Dfile=/path/to/file
>>
>>   Alternatively, if you host your own repository you can deploy the file
>> there:
>>       mvn deploy:deploy-file -DgroupId=org.telluriumsource
>> -DartifactId=tellurium-udl -Dversion=0.7.0 -Dpackaging=jar
>> -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
>>
>>   Path to dependency:
>>       1) org.telluriumsource:tellurium-core:jar:0.7.0
>>       2) org.telluriumsource:tellurium-udl:jar:0.7.0
>>
>> ----------
>> 1 required artifact is missing.
>>
>> for artifact:
>>   org.telluriumsource:tellurium-core:jar:0.7.0
>>
>> from the specified remote repositories:
>>   central (http://repo1.maven.org/maven2),
>>   kungfuters-thirdparty-releases-repo (
>> http://maven.kungfuters.org/content/repositories/thirdparty),
>>   openqa-release-repo (http://archiva.openqa.org/repository/releases),
>>   caja (http://google-caja.googlecode.com/svn/maven),
>>   kungfuters-public-snapshots-repo (
>> http://maven.kungfuters.org/content/repositories/snapshots)
>>
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 10 seconds
>> [INFO] Finished at: Fri Jul 16 12:19:41 PDT 2010
>> [INFO] Final Memory: 12M/30M
>> [INFO]
>> ------------------------------------------------------------------------
>>
>>
>>
>> *From:* Jian Fang <[email protected]>
>> *To:* [email protected]
>> *Sent:* Fri, July 16, 2010 11:25:18 AM
>>
>> *Subject:* Re: Selenium waitForAjax () question?
>>
>> Almost except the second parameter indicates whether you have a uid in the
>> method. For example,
>>
>> getHTMLSource(uid)
>>
>> is true for the second parameter. On the other hand, the following method
>> does not tie to any UI element, i.e., uid,
>>
>> getNamespace()
>>
>> thus, it is false in this case.
>>
>> Thanks,
>>
>> Jian
>>
>> On Fri, Jul 16, 2010 at 2:18 PM, Manoj Chavan <[email protected]>wrote:
>>
>>> Hi Jian,
>>>   Wanted to know what the parameters are when registering the JS.
>>>
>>>     this.registerApi("getIndex", true, "NUMBER");  // The first one I can
>>> guess <Function Name>, <assuming default return value>,<return type>
>>>
>>> Please confirm.
>>>
>>> Regards,
>>>
>>> Manoj
>>>
>>>
>>> *From:* Manoj Chavan <[email protected]>
>>>
>>> *To:* [email protected]
>>> *Sent:* Thu, July 15, 2010 8:54:49 PM
>>>
>>> *Subject:* Re: Selenium waitForAjax () question?
>>>
>>> Thanks Jian,
>>>
>>> Will do this and let you know how it works for me.
>>>
>>> Regards,
>>> Manoj
>>>
>>>
>>> *From:* Jian Fang <[email protected]>
>>> *To:* [email protected]
>>> *Sent:* Thu, July 15, 2010 5:29:44 PM
>>> *Subject:* Re: Selenium waitForAjax () question?
>>>
>>> Cool. First, you need to register your api in the following method:
>>>
>>> Tellurium.prototype.registerTeApis = function(){
>>>     this.registerApi("isElementPresent", true, "BOOLEAN");
>>>     this.registerApi("blur", true, "VOID");
>>> ...
>>> }
>>>
>>> where the function is defined as
>>>
>>> Tellurium.prototype.registerApi = function(apiName, requireElement,
>>> returnType){
>>>
>>> apiName is your method name, requireElement means your method requires a
>>> locator, and returnType is of
>>> of the following values: [STRING, BOOLEAN, NUMBER, OBJECT, ARRAY, VOID].
>>>
>>> Then, in Tellurium core BaseDslContext.groovy defines a method similar to
>>> the following one:
>>>
>>>   int getTeRepeatNum(String uid){
>>>     WorkflowContext context =
>>> WorkflowContext.getContextByEnvironment(this.exploreCssSelector(),
>>> this.exploreUiModuleCache())
>>>     walkToWithException(context, uid)
>>>
>>>     return extension.getRepeatNum(context, uid)
>>>   }
>>>
>>> Note that you should pass it to the extension tier so that you don't need
>>> to define a new method in different tiers since the extension
>>> tier simply passes all commands it receives to the Engine.
>>>
>>> After that, you should be able to call your method from any class that
>>> extends the DslContext class.
>>>
>>> Let us know if you have further questions.
>>>
>>> Thanks,
>>>
>>> Jian
>>>
>>> On Thu, Jul 15, 2010 at 7:27 PM, Manoj Chavan <[email protected]>wrote:
>>>
>>>> Hi Jian
>>>>
>>>>    I created two prototype functions in tellurium-api.js, was wondering
>>>> how to call them in my JUnit
>>>> tests?
>>>>
>>>> Regards,
>>>>
>>>> Manoj
>>>>
>>>>
>>>> *From:* Jian Fang <[email protected]>
>>>> *To:* [email protected]
>>>> *Sent:* Wed, July 14, 2010 12:52:43 PM
>>>>
>>>> *Subject:* Re: Selenium waitForAjax () question?
>>>>
>>>> Not sure if that works. You better to create a new custom selenium
>>>> method in user_extensions.js or the tellurium-extension.js
>>>> in the Engine for Selenium Core apis. For new Engine APIs, you can
>>>> modify the tellurium-api.js and register the api.
>>>>
>>>> Thanks,
>>>>
>>>> Jian
>>>>
>>>> On Wed, Jul 14, 2010 at 3:47 PM, Manoj Chavan 
>>>> <[email protected]>wrote:
>>>>
>>>>> Question? When using the .waitForCondition() as below, it does not seem
>>>>> to work. Wanted to
>>>>> know if the selenium JScript can be called like this? OR do I need to
>>>>> add a new def in user_extensions.js?
>>>>>
>>>>> mbh.waitForCondition("selenium.browserbot.getCurrentWindow().jQuery.active
>>>>> == 0", 10000);
>>>>>
>>>>> Regards,
>>>>>
>>>>> Manoj
>>>>>
>>>>> ps: I have downloaded the project from the repository and once I figure
>>>>> out where to add this
>>>>> will submit the method for review.
>>>>>
>>>>>
>>>>> *From:* Jian Fang <[email protected]>
>>>>> *To:* [email protected]
>>>>> *Sent:* Mon, July 12, 2010 2:29:50 PM
>>>>> *Subject:* Re: Selenium waitForAjax () question?
>>>>>
>>>>> Tellurium new Engine uses jQuery and you are welcome to add
>>>>> waitForAjaxToComplete()
>>>>> and then contribute it back to us.
>>>>>
>>>>> We have a similar issue open, but no one works on it now.
>>>>>
>>>>> http://code.google.com/p/aost/issues/detail?id=145
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Jian
>>>>>
>>>>> On Mon, Jul 12, 2010 at 5:24 PM, Manoj Chavan 
>>>>> <[email protected]>wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>>   Wanted to find out which javascript library is Tellurium using
>>>>>> (Prototype,
>>>>>> dojo, jquery)?
>>>>>> I wanted to add some functions for waitForAjaxToComplete() for the
>>>>>> selenium-server. Or
>>>>>> is there a better way via Tellurium to wait for all Ajax queries to
>>>>>> complete on
>>>>>> a page load
>>>>>> before proceeding?
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Manoj
>>>>>>
>>>>>>
>>>>>> -------------code from web ---------
>>>>>>
>>>>>>
>>>>>> def wait_for_ajax(timeout=5000)
>>>>>> >js_condition =  “selenium.browserbot.getCurrentWindow().jQuery.active
>>>>>> == 0”
>>>>>> >$selenium.wait_for_condition(js_condition, timeout)
>>>>>> >end
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "tellurium-users" group.
>>>>>> To post to this group, send email to [email protected]
>>>>>> .
>>>>>> To unsubscribe from this group, send email to
>>>>>> [email protected]<tellurium-users%[email protected]>
>>>>>> .
>>>>>> For more options, visit this group at
>>>>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>>>>
>>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "tellurium-users" group.
>>>>> To post to this group, send email to [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<tellurium-users%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>>>
>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "tellurium-users" group.
>>>>> To post to this group, send email to [email protected].
>>>>> To unsubscribe from this group, send email to
>>>>> [email protected]<tellurium-users%[email protected]>
>>>>> .
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>>>
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "tellurium-users" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<tellurium-users%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "tellurium-users" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<tellurium-users%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "tellurium-users" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<tellurium-users%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "tellurium-users" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<tellurium-users%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "tellurium-users" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<tellurium-users%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/tellurium-users?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "tellurium-users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<tellurium-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-users?hl=en.
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "tellurium-users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<tellurium-users%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/tellurium-users?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "tellurium-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<tellurium-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "tellurium-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<tellurium-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"tellurium-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tellurium-users?hl=en.

Reply via email to