Skip to main content

Chatbots Never Sleep - Testing Chatbot I

Testing Chatbot I
Today I am talking about how to test a chatbot. What is chatbot ? and How does it work ? Before testing a chatbot first we need to know what chatbot is. Chatbot is a service and worked according to the rules or artificial intelligence. The service could be banking, entertainment, fashion, online shopping, news etc.
How Chatbot works ?
There are two types of chatbots.
  1. Functional rules oriented
  2. Machine learning
Functional rule chatbots have limited features and they are respond for very specific commands. Machine learning chatbots has an artificial intelligence brain. This brains are continuously learning from previous conversations.
How to test chatbot
  1. Tense - When asking a question from chatbot, we can use different tenses. For a example, in banking chatbot client needs to know the revenue, then he can ask it in different ways.  What is my revenue ? What will be my revenue ?
  2. Date Time and time period - Questions can be asked with time periods and exact date and time. For an example, What is my revenue for January ? What will be my revenue for next/last January ?  What is the interest rate of 4th July ? What will be my revenue for next 3 months ? What was my revenue for last 4 months ?
  3. Synonymous - Ask same question with different words. For an example, Can I know how much revenue that I earned last week ? Can I know how much income that I earned last week ?
  4. Different Ways - Ask same questions in different ways. For an example, What is interest rate of savings account ?  Can you tell me the interest rate of savings account ?
  5. Open/Closed questions - Closed-ended questions can be answered in only one word or with a short, specific piece of information. Open-ended questions require an answer with more depth and a lengthier response.
  6. Question/Word/Sentence - Ask something that need to know as a question or as a word. For an instance, What is the interest rate of saving account ? interest rate of savings account
  7. Continuously questioning - Continue conversation. If we need to know about product we are asking all the details one by one as a conversation. For an example, What types of handbags are available ?  How can I buy ? What are the payment methods ?
  8. Replace with pronoun - When continuously doing a conversation about something, we can replace product name with pronoun. For an example, What types of handbags are available ?  Do they imported ? What are the materials of them ?
  9. Changing subject of same question - For an instance, What is the price of i5 ? What is the price of i3 ? and we can ask the question about same thing by changing the subject. For a example, how can i buy this product ? How can we buy this product ?
  10. Phrases with questions - Ask question with phrase and without them. phrases can be used in question at the beginning and end.
These are few test scenarios of chatbot. I think you get a basic knowledge how to test chatbot. The test scenarios can be changed according to the functionalities and architecture of chatbot.
See you soon with another chatbot tutorial........ (https://dzoneselenium.wordpress.com/)
Thanks,
Dananji Withana

Comments

Popular posts from this blog

Java basic for Selenium - Selenium Tutorial II

Today we are talking about Array. The software tester should have some basic knowledge about java when writing selenium scripts for the validations. Array is a data structure where stored in elements in same data type. The declaration and initialization an array as follows. int[]  Array_a;   or  int  Array_a[]; - This is an integer array. int[10] = Array_num;  - This is an integer array which stores 10 elements. Array_num[0] = 10;    - Assign value 10 to 0 th element of array. (Index [0]) int[]   Array_num = { 1, 2, 3, 4, 5 };  Finding maximum value of an array Finding minimum value of an array Finding average value of an array Find the key of an array Reverse an array The time complexity of this algorithm is   O(n/2)   which is O(N) because we are iterating over array till midpoint only. The initial iteration is happening as follows The...

Security Testing - I - Web Testing - I

Security Testing - Web Testing  Security is set of measures to protect an application against unpredictable actions that causes it to terminate functioning. Security testing is a process intended to reveal flaws in the security mechanisms of an information system that protect data and maintain functionality as intended. This is type of non functional testing. For minimizing the defects by identifying threats in the system and cost of quality, the security testing must be started at the early stage of Software development life cycle. The following figure is shown the relation between Software development life cycle and security testing . Test plan should includes Test scenarios and test cases related to the security. Test data related to the security test cases. Test tools for security testing and test outputs on the different test tools Security Testing Approach 1. Identify all the business requirements, security goals ...

Strategies and methods for test case design II

Strategies and methods for test case design Today we are talking about how to get an approach for writing a good test case. Developers cannot prevent or eliminate all the defects raised in the application during implementation. That's why the application should be tested before deliver to the customer. Before starting the execution, we need to identify test scenarios and write test cases for each identified scenarios. Test case is test description which needs to be executed to verify the functionality or feature of the application. A good test case have a good possibility of finding defects. For designing effective test cases, there are two basic strategies that can be used. Black box test strategies White box test strategies Test Strategies Sources Testing Techniques Black Box  Functional requirement specification Equivalence partitioning   Business requirement specification Boundary value analysis   Domain knowledge State Transition Testing     ...