-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up style and added placeholder video.
- Loading branch information
Kurt Waechter
committed
Oct 17, 2017
1 parent
fe42c4b
commit 218932b
Showing
4 changed files
with
32 additions
and
9 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# lambda-selenium [](https://travis-ci.org/blackboard/lambda-selenium) | ||
|
||
## [Java Tutorial](./java-tutorial.md) | ||
|
||
## Getting Started | ||
1. Download Latest Zip | ||
2. Upload to AWS Lambda | ||
3. Test the Function | ||
|
||
### [Beginner: Node Tutorial](./node-tutorial.md) | ||
|
||
|
||
### [Advanced: Java Tutorial](./java-tutorial.md) | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
theme: jekyll-theme-slate | ||
theme: jekyll-theme-slate | ||
show_downloads: true |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,12 @@ | |
* Upload the release zip into an s3 bucket and copy the link for the file. | ||
* Create a new Lambda Function in AWS with the following name | ||
|
||
Note: for the tests to execute this name is required | ||
```shell | ||
lambda-selenium-function | ||
``` | ||
_Note: for the tests to execute this name is required_ | ||
|
||
* Change the settings of the Lambda Function | ||
**_Change the settings of the Lambda Function_** | ||
1. Set the Runtime to Java 8 | ||
2. Set the Handler to com.blackboard.testing.lambda.LambdaTestHandler::handleRequest | ||
3. Set the Memory to 1536 MB | ||
|
@@ -23,25 +23,25 @@ Note: S3 is required because of the size of the package. | |
|
||
Now the function is ready to be invoked. | ||
|
||
* Clone the repository and cd into the java example | ||
**_Use shell commands to clone the repository and change the working directory to the Java example_** | ||
```shell | ||
git clone [email protected]:blackboard/lambda-selenium.git | ||
cd lambda-selenium/lambda-selenium-java/ | ||
``` | ||
|
||
* Run the parameterized test suite ExampleTestSuite using an IDE or from the command line with: | ||
**_Next, run the test suite 'ExampleTestSuite' inside the same shell :_** | ||
```shell | ||
gradle clean test | ||
``` | ||
|
||
When the tests are ran, they will be executed in parallel by invoking the Lambda function that was created. | ||
Once the tests are complete, open up the build/screenshots folder to view screenshots taken inside the running tests. | ||
If a test fails, the exception will be thrown for the parameterized test case and logged to the console. | ||
Once the tests are complete, open folder './build/screenshots' to view screenshots taken inside the running tests. | ||
If a test fails, the exception will be thrown for the test case and logged to the console. | ||
|
||
|
||
#### Packaging A New Function | ||
|
||
To package the jar, run the following command inside the lambda-selenium-java directory | ||
**_To package the jar, run the following command inside the lambda-selenium-java directory_** | ||
```shell | ||
gradle clean unzipLibs shadowJar | ||
``` | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Lambda-Selenium: NodeJS Tutorial [](https://travis-ci.org/blackboard/lambda-selenium) | ||
|
||
[](http://video.webmfiles.org/big-buck-bunny_trailer.webm "Basic Tutorial") | ||
|
||
|
||
#### Running The Example | ||
1. [Download the latest release - node_lambda_function.zip](https://github.com/blackboard/lambda-selenium/releases/latest) | ||
2. Create new function in AWS console | ||
3. Add test | ||
4. Try it! | ||
|
||
|