Siesta integration into project

Get help with testing, discuss unit testing strategies etc.
Post Reply
User avatar
jminutella
Posts: 36
Joined: Wed Oct 19, 2016 3:03 pm

Siesta integration into project

Post by jminutella » Wed Mar 13, 2019 10:41 pm

I'm trying to integrate Siesta into our ASP.NET/ExtJS web application. At the moment, all I really care about is running tests in the browser - obviously similar to the ExtJS examples. However, I'm getting plenty of nodejs errors when trying to build the project.

1. Is NodeJS absolutely required to use Siesta? Can I use Siesta without it. We don't have NodeJS in our project so I'd prefer not to use it.

2. What are the bare minimum files to run web browser tests? I unpacked the Siesta-standard archive and just copied the contents to our project. Can I remove node_modules and other unnecessary files?

Thanks!

User avatar
nickolay
Core Developer
Core Developer
Posts: 3299
Joined: Mon May 16, 2011 10:48 am

Re: Siesta integration into project

Post by nickolay » Thu Mar 14, 2019 10:10 am

If you only want to launch the tests manually, all you need from the Siesta archive - "siesta-all.js" and "resources" folder.

If you'll want to launch the tests from command line, you'll need the launchers, from the "bin" folder (bin/webdriver, bin/puppeteer). This will already require all archive content. Siesta uses Node.js that is bundled in the archive.

Can you provide more information?
We offer training in both Ext JS and our products, read more here.
Read the API documentation

User avatar
jminutella
Posts: 36
Joined: Wed Oct 19, 2016 3:03 pm

Re: Siesta integration into project

Post by jminutella » Fri Mar 15, 2019 2:23 pm

Hi Nickolay, thanks for the response!

I was having a hard time on Wednesday trying to get Siesta to render the page correctly so I was curious if we needed the bin, node_modules...folders because I didn't originally include them in our visual studio project and whenever I tried to launch Siesta, I'd get some blue page with the logo that clearly didn't load correctly.

It turns out I was just having some caching issues. I'm now able to fully run Siesta with just the resources folder and siesta-all.js file - for basic browser testing for now.

Thanks again!

User avatar
nickolay
Core Developer
Core Developer
Posts: 3299
Joined: Mon May 16, 2011 10:48 am

Re: Siesta integration into project

Post by nickolay » Fri Mar 15, 2019 4:14 pm

Sure, yw
We offer training in both Ext JS and our products, read more here.
Read the API documentation

Post Reply