Skip to content

Commit

Permalink
Layout updates.
Browse files Browse the repository at this point in the history
Cleaned up style and added placeholder video.
  • Loading branch information
Kurt Waechter committed Oct 17, 2017
1 parent fe42c4b commit 218932b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 9 deletions.
12 changes: 11 additions & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
# lambda-selenium [![Build Status](https://travis-ci.org/blackboard/lambda-selenium.svg?branch=master)](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)

3 changes: 2 additions & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
theme: jekyll-theme-slate
theme: jekyll-theme-slate
show_downloads: true
14 changes: 7 additions & 7 deletions docs/java-tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```
Expand Down
12 changes: 12 additions & 0 deletions docs/node-tutorial.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Lambda-Selenium: NodeJS Tutorial [![Build Status](https://travis-ci.org/blackboard/lambda-selenium.svg?branch=master)](https://travis-ci.org/blackboard/lambda-selenium)

[![Basic Tutorial](http://i.imgur.com/7YTMFQp.png)](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!


0 comments on commit 218932b

Please sign in to comment.