Absolute Beginners Guide to Running Sauce RC with HTML Scripts
Sauce AI for Test Authoring: Move from spirit to execution in minutes.|xBack to ResourcesBlogPosted
Sauce AI for Test Authoring: Move from spirit to execution in minutes.
|
x
Blog
Absolute Beginners Guide to Running Sauce RC with HTML Scripts
Guest blog post by Sauce user Adam Lemisch
After acquire you can ’ t easily use tests make in Selenium IDE (in HTML formatting) with Selenium RC to point tests at multiple browser, I figured I had no selection but to rush out and learn a scripting language.
But after some enquiry, I came across, and realized it was THE perfect jump off point for me. I could use Sauce IDE to render the tests I take, point Sauce RC at the HTML files that contained the exam steps, and run those tests against different browser.
The pursuit will guide you through the process of utilizing Sauce RC to run HTML tests create in Sauce IDE.
After you ’ ve played with/learned Sauce IDE and hold a test you want Sauce RC to handle, you will get to save the “ tryout case ” and “ test rooms ” as HTML file in order for Sauce RC to act with them.
This is where the issues began…
Saving the “ Test Case ” CORRECTLY:
1.From the Sauce IDE “ File ” menu, select “ Save Test Case ” or “ Save Test Case As… ”
2.Navigate to the directory that you care to preserve your test case in.2a. Make sure that you manually add the “ .html ” extension to the file name.2b. Make sure that you select the “ HTML Files ” selection from the “ Save as type: ” box.
For autonomous testing across multiple user personas, check out SUSATest — it explores your app like 10 different real users.
You ’ re done preserve the “ Test Case ” constituent of the file take. Adjacent, we save the “ Test Suite ” file in pretty much the precise like way.
Saving the “ Test Suite ” CORRECTLY:
1.From the Sauce IDE “ File ” menu select “ Save Test Suite ” or “ Save Test Suite As… ”
2.Navigate to the directory that you care to relieve your test entourage in.2a. Make sure that you manually add the “ .html ” propagation to the file name.2b. Make sure that you select the “ HTML Files ” option from the “ Save as type: ” box.
You ’ re done saving the “ Test Case Suite ” portion of the files required.
Next we move on to showing Sauce RC where to find the files to run from. (If you know a slight about HTML, you can look at the two file you just saved in an HTML editor. You will see that the TestSuite.html file is link to the TestCase.html file.)
Showing Sauce RC where the files are CORRECTLY:
1.On the “ HTML Suite ” tab of Sauce RC we are locomote to fill in the required information.
1a. “ Suite File ” must be filled in with the precise route to the file we designated in the second step title, “ Saving the “ Test Suite ” CORRECTLY: ”
1b. “ Result File ” must contain a route to a directory WITH a file gens at the end of the way that include the “ .html ” extension. If you simply input the path and FULL filename, Sauce RC will create the “ Result File ” for you at run clip.
1c. “ Start URL ” must match what ’ s in your test causa.
1d. “ Browser ” – well that ’ s simply self explanatory…
The next screenshot is an example.
So, there you have it! You should be capable to hit run and ticker as Sauce RC go through your test script in the selected browser. Hopefully this helps, and if you run into any issues and get other answers, please share in the. Chances are we ’ re all looking for an response when we are simply starting out!
Automate This With SUSA
Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts needed.
Try SUSA FreeTest Your App Autonomously
Upload your APK or URL. SUSA explores like 10 real users — finds bugs, accessibility violations, and security issues. No scripts.
Try SUSA Free