Hey ,
I am trying to run the sample code for google on my machine . However
when I am running the test the google page itself is not opening and
is failing with following error
----------------------------------------------------------------------------------------
The connection has timed out
The server at www.google.com is taking too long to respond.
* The site could be temporarily unavailable or too busy. Try
again in a few
moments.
* If you are unable to load any pages, check your computer's
network
connection.
* If your computer or network is protected by a firewall or
proxy, make sure
that Firefox is permitted to access the Web.
------------------------------------------------------------------------------------------
I have tried all the stuff with no success . Please let me know if
anybody else have faced the same issue.
Here is my config file
----------------------------------------------------------------------------------------
/**
* The global place to Tellurium configuration
*
* @author Jian Fang ([email protected])
*
* Date: Aug 2, 2008
*
*/
tellurium{
//embedded selenium server configuration
embeddedserver {
//port number
port = "4445"
//whether to use multiple windows
useMultiWindows = false
//whether to trust all SSL certs, i.e., option "-
trustAllSSLCertificates"
trustAllSSLCertificates = true
//whether to run the embedded selenium server. If false, you
need to manually set up a selenium server
runInternally = true
//By default, Selenium proxies every browser request; set this
flag to make the browser use proxy only for URLs containing '/selenium-
server'
avoidProxy = false
//stops re-initialization and spawning of the browser between
tests
browserSessionReuse = false
//enabling this option will cause all user cookies to be
archived before launching IE, and restored after IE is closed.
ensureCleanSession = false
//debug mode, with more trace information and diagnostics on the
console
debugMode = false
//interactive mode
interactive = false
//an integer number of seconds before we should give up
timeoutInSeconds = 30
//profile location
// profile = "/home/jiafan1/.mozilla/firefox/820j3ca9.default"
profile = ""
//user-extension.js file
userExtension = ""
}
//event handler
eventhandler{
//whether we should check if the UI element is presented
checkElement = false
//wether we add additional events like "mouse over"
extraEvent = true
}
//data accessor
accessor{
//whether we should check if the UI element is presented
checkElement = true
}
//the bundling tier
bundle{
maxMacroCmd = 5
useMacroCommand = true
}
//the configuration for the connector that connects the selenium
client to the selenium server
connector{
//selenium server host
//please change the host if you run the Selenium server
remotely
serverHost = "localhost"
//server port number the client needs to connect
port = "4445"
//base URL
baseUrl = "http://www.google.co.in/"
//Browser setting, valid options are
// *firefox [absolute path]
// *iexplore [absolute path]
// *chrome
// *iehta
browser = "*firefox"
//user's class to hold custom selenium methods associated with
user-extensions.js
//should in full class name, for instance,
"org.telluriumsource.test.MyCommand"
customClass = ""
//browser options such as
// options = "captureNetworkTraffic=true,
addCustomRequestHeader=true"
options = ""
}
datadriven{
dataprovider{
//specify which data reader you like the data provider to
use
//the valid options include "PipeFileReader",
"CVSFileReader" at this point
reader = "PipeFileReader"
}
}
//this section allows users to define the internationalization
required
//if this section is removed, we take the default locale
//from the system
//enter only one locale at a time, and use this only if you want
to explicitly
//set the locale, preferable way is to comment out this section
i18n{
//locale = "fr_FR"
locale = "en_US"
}
test{
execution{
//whether to trace the execution timing
trace = false
}
//at current stage, the result report is only for tellurium
data driven testing
//we may add the result report for regular tellurium test case
result{
//specify what result reporter used for the test result
//valid options include "SimpleResultReporter",
"XMLResultReporter", and "StreamXMLResultReporter"
reporter = "XMLResultReporter"
//the output of the result
//valid options include "Console", "File" at this point
//if the option is "File", you need to specify the file
name, other wise it will use the default
//file name "TestResults.output"
output = "Console"
//test result output file name
filename = "TestResult.output"
}
exception{
//whether Tellurium captures the screenshot when exception
occurs.
//Note that the exception is the one thrown by Selenium
Server
//we do not care the test logic errors here
captureScreenshot = false
//we may have a series of screenshots, specify the file
name pattern here
//Here the ? will be replaced by the timestamp and you
might also want to put
//file path in the file name pattern
filenamePattern = "Screenshot?.png"
}
}
uiobject{
builder{
//user can specify custom UI objects here by define the
builder for each UI object
//the custom UI object builder must extend UiObjectBuilder
class
//and implement the following method:
//
// public build(Map map, Closure c)
//
//For container type UI object, the builder is a bit more
complicated, please
//take the TableBuilder or ListBuilder as an example
//example:
// Icon="org.telluriumsource.ui.builder.IconBuilder"
}
}
widget{
module{
//define your widget modules here, for example Dojo or
ExtJs
// included="dojo, extjs"
included=""
}
}
}
------------------------------------------------------------------------------------------------------------
Java File
------------------------------------------------------------------------------------------------------------
import org.junit.BeforeClass;
import org.junit.Test;
import org.telluriumsource.test.java.TelluriumJUnitTestCase;
/**
* This test file (MyTestCase.java) is automatically generated by
TrUMP 0.8.0.
*
*/
public class TestClass extends TelluriumJUnitTestCase {
private static IAFDOTNETLogin mum;
@BeforeClass
public static void initUi() {
System.out.println("initui");
mum = new IAFDOTNETLogin();
mum.defineUi();
System.out.println("end -initui");
connectSeleniumServer();
//useTelluriumEngine(true);
//useTrace(true);
}
//Add your test cases here
@Test
public void testCase()
{
connectUrl("http://www.google.com");
mum.TestLogin();
}
}
--------------------------------------------------------------------------------------------------------------------
Groovy Class File
----------------------------------------------------------------------------------------------------------------------
import org.telluriumsource.dsl.DslContext;
public class IAFDOTNETLogin extends DslContext
{
public void defineUi()
{
ui.Container(uid: "GoogleSearchModule", clocator: [tag:
"td"],
group: "true")
{
InputBox(uid: "Input", clocator: [title: "Google
Search"])
SubmitButton(uid: "Search", clocator: [name: "btnG",
value:
"Google Search"])
SubmitButton(uid: "ImFeelingLucky", clocator:
[value: "I'm
Feeling Lucky"])
}
}
public int TestLogin()
{
type "GoogleSearchModule.Input", "Tellurium test"
click "GoogleSearchModule.Search"
waitForPageToLoad 30000
}
}
--------------------------------------------------------------------------------------------------------------------------------
Any clue\help will be appreciated . Thanks in advance.
--
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.