Hi,
Iam getting the following error while running the test
BUILD FAILED
H:\pf\webtest\webtest.xml:242: The following error occurred while executing
t
line:
h:\pf\webtest\groovy2\tests\allTests.xml:5: The following error occurred
whil
xecuting this line:
h:\pf\webtest\groovy2\tests\test2.groovy:1: Content is not allowed in
prolog.
allTest.xml
----------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1"?>
<project default="test">
<target name="test" description="runs all the tests">
<ant antfile="test2.groovy"/>
</target>
</project>
test2.groovy
------------------------------------------
import com.canoo.webtest.WebtestCase
import org.junit.Test
public class SampleTest extends WebtestCase
{
void testSample(){
webtest("login to the application")
{
invoke url:'${env.url}', description='Got to login page',
username:'${login.user1}', password: '${login.pwd}',
verifyText: text='Logged in as'
}
}
}
Can any one please take a look at this and guide me?
Regards,
Srini
2010/5/5 Dierk König <[email protected]>
> use the <groovy file:"myfile.groovy"/> step.
>
> cheers
> Dierk
>
> Am 04.05.2010 um 17:36 schrieb sriharini sriharini:
>
> Any ideas?
>
>
> On Thu, Apr 29, 2010 at 2:30 PM, sriharini sriharini <[email protected]>wrote:
>
>> Hi,
>> I am using webtest xml format. Recently i am working on groovy scripting.
>> How to include these .groovy files in the test structure so that when
>> allTests.xml is called these groovy files will be run?
>>
>> Thanks in advance
>>
>> Srini
>>
>> my test folder structure
>>
>> tests : -- alltests.xml, sample.groovy, sample.xml
>> includes
>> results
>> build.xml
>> config
>> dtd
>>
>
>
>