This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once dirname(__FILE__) . '/../Extensions/IXR_Library.php'; //for XML-RPC | |
//some code to drive browser with Selenium to get to LDAP login point | |
$client = new IXR_Client('http://localhost:8270/RPC2'); | |
if (!$client->query('run_keyword', 'LDAPLogin', array("yourUserName", "yourPassword"))) { | |
print 'An error occurred - '.$client->getErrorCode().":".$client->getErrorMessage(); | |
} | |
/* now code that continues with Selenium after LDAP login completed | |
using custom AutoIt library (in Perl) served by RF Perl remote server |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!empty($_POST)){ | |
$sentFlag = TRUE; | |
$smsResponse = "Something sent"; | |
}else{ | |
$sentFlag = FALSE; | |
$smsResponse = "Nothing sent."; | |
} | |
//get carrier list w/ CURL & establish session | |
$tuCurl = curl_init(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* an example of file download in Java w/ minimal amount of code, library imports, | |
* and object instantiations especially if you wrap/encapsulate code like example below. | |
* NOTE: sample code has been tested to work but not thoroughly tested. Use at your own risk. | |
*/ | |
import java.net.*; | |
import java.io.*; | |
//be sure to delete file after working with it. filenamePrefix ~ "test_", file extension ~ ".jpg", include the "." | |
public String downloadFile(String url, String filenamePrefix, String fileExtension) throws Exception{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/** | |
* This creates the cookie header string for curl to send when making requests. | |
* It includes the (PHP) session ID among possibly a few other cookies. This is | |
* not for use with curl's built-in cookie JAR (CURLOPT_COOKIEJAR) and file | |
* handling (CURLOPT_COOKIEFILE) options. This is using the curl header | |
* (CURLOPT_COOKIE) with value of "name1=value1; name2=value2..." | |
* See http://hasin.me/2007/04/18/cookiejar-in-curl-it-sucks/ and | |
* http://en.wikipedia.org/wiki/HTTP_cookie for more details. | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following are some notes on how to develop a Silk4J-based test library for Robot Framework to use the Borland Silk GUI automation tool/library. | |
Suggest use Silk4J GUI element/object location inline object model (identify object & execute automation all in one line of code): | |
desktop.<controlType>find("/windowHandleType[@caption='window title']//controlType[@automationId='idName']").commandName(); | |
At the control type descriptor for automation ID, the automation ID is only the required first array index to locating the object/element. As I recall, there can be optional second index after it that further describes the object/element, but I forget it's syntax, but it goes like such of course: | |
...//controlType[@automationId='idName'][some other identification here]").commandName(); |
NewerOlder