# Can we use NR for automation testing?

**URL:** <https://discourse.nodered.org/t/can-we-use-nr-for-automation-testing/35844>\
**Category:** General\
**Created:** [13 November 2020 03:07 UTC](https://discourse.nodered.org/t/can-we-use-nr-for-automation-testing/35844 "2020-11-13T03:07:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![1984](https://avatars.discourse-cdn.com/v4/letter/1/ee59a6/32.png) [@1984](https://discourse.nodered.org/u/1984)\
**Post date:** [13 November 2020 03:07 UTC](https://discourse.nodered.org/t/can-we-use-nr-for-automation-testing/35844/1 "2020-11-13T03:07:01Z")

</div>

HI,  
i saw an old post from [PaulKeates1](https://discourse.nodered.org/u/PaulKeates1)  
saying that they use NR for automate testing for web app and api.  
Did someone hear about that? or did someone use NR for automation testing?  
Thank you

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [13 November 2020 08:44 UTC](https://discourse.nodered.org/t/can-we-use-nr-for-automation-testing/35844/2 "2020-11-13T08:44:53Z")

</div>

Hi @1984

you don't link to the old post you saw, but without more details about what exactly you want to do, then all we can really say is that yes, Node-RED could be used for automation testing, depending on what it is you want to automate.

Node-RED is a fairly general-purpose programming platform. If it's possible to do it in 'normal' code, it will be possible to do in Node-RED. The only matter is how much is already done through existing nodes, versus custom code needed. But again, that comes back to what exactly it is you want to automate.

---

<div class="post-metadata">

**Author:** ![1984](https://avatars.discourse-cdn.com/v4/letter/1/ee59a6/32.png) [@1984](https://discourse.nodered.org/u/1984)\
**Post date:** [13 November 2020 12:59 UTC](https://discourse.nodered.org/t/can-we-use-nr-for-automation-testing/35844/3 "2020-11-13T12:59:21Z")

</div>

You are right.  
By automation test i meant, testing web application with selenium and api test with soapui. I was just curious when i heard NR can be used for these tests.  
But as you said NR is a general-purpose programming platform.  
As i see we can develop test code with any code and then call the test with NR and could nice for example with a dashboard where we can see all tests running and getting results.  
It could be interesting.  
I will try and will post here.

The old post was:

> [@Would you use Node-RED in a production environment for IoT industry applications?](https://discourse.nodered.org/t/would-you-use-node-red-in-a-production-environment-for-iot-industry-applications/19358):
>
> I have been receiving different answers to this question. Some experts are hesitant and lean towards using Node-RED only for prototyping in case of industry applications because they think they can write more efficient code that uses much less of the cpu and also have more control over security, while others are proposing it's a good idea to continue using Node-RED from prototyping to production in industry applications in which case you have a very short time from prototype to product and can m…

---

<div class="post-metadata">

**Author:** ![krambriw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/krambriw/32/5429_2.png) [@krambriw](https://discourse.nodered.org/u/krambriw)\
**Post date:** [13 November 2020 13:53 UTC](https://discourse.nodered.org/t/can-we-use-nr-for-automation-testing/35844/4 "2020-11-13T13:53:27Z")

</div>

Once in one of my earlier positions as R&D manager we used a software testing tool targeting testing the ui. This showed to be very valuable since you could record mouse movements/clicks and keyboard inputs. And then you could run/loop it and test all functionality of the ui. The script that was created was editable so it was easy to extend when new functionality was added. Looping it over weekends and hopefully the software being tested was still working fine on Monday. Helped us a lot to find those unexpected things...

Anyway, I do not know if Node-RED yet can be used to drive mouse movements/clicks and keyboard inputs like that and record it. Which would be nice I think...

---

<div class="post-metadata">

**Author:** ![1984](https://avatars.discourse-cdn.com/v4/letter/1/ee59a6/32.png) [@1984](https://discourse.nodered.org/u/1984)\
**Post date:** [13 November 2020 14:31 UTC](https://discourse.nodered.org/t/can-we-use-nr-for-automation-testing/35844/5 "2020-11-13T14:31:49Z")

</div>

Hi,  
i don't think NR can be used for driving mouse movements/clicks and keyboard inputs like that and record it. (selenium or katalon can do that)  
But i think we can execute NR to execute a test as external process.  
So for example you have your test code already developped, you can execute it with jenkins using a command or anything else, in the same way NR should be able to execute any external process. With a well defined dashboard maybe we can have something to see all test result or exporting result into txt files or xml etc...

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [12 January 2021 14:31 UTC](https://discourse.nodered.org/t/can-we-use-nr-for-automation-testing/35844/6 "2021-01-12T14:31:55Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
