jeudi 1 juin 2017

Testing Algorithm Implementation with Agent/Robot Simulator

Given the simple challenge:

I have implemented Q(\lambda)-Learning algorithm for an agent who chooses his next action/move based on knowledge which it gets from a sensor which provides the agent/robot with 360 distance measurements (i.e. for each degree one laser scan with the distance to an object in range of x meters).

I dont care about the type of the simulator. It should only feed my algorithm frequently with 360 distance-values (of the 360 degree laser scan sensor) with which I can make a decision for my next action/move. Moreover, I want to roughly sketch the environment the agent/robot is in; e.g. a circle,rectangle or any other shaped environment surrounded by walls.

What methods or simulator or application can I use in order to see how my algorithm navigates/steers the agent/robot?

Thanks!

what should be best practices to be fallowed for efficient performance testing

I am beginner in performance testing using the jmeter tool.Can you please help me with the best guidelines i need to fallow when performing load testing. There are so much material available which cannot be consumed all together so i am confused which one should be fallowed to start with.

Thanks in advance :)

Happy Testing

how we can use Page Object model and Object repository together in Hybrid framework in selenium Webdriver

I am newbie to Selenium framework , I want to create a generic framework so that i can access this framework in multiple object by doing minimal changes in Object repository and excel file.

To create a generic framework I want to use object.Properties and Page object model. Please guide me how I can proceed to make it more generic.

what is negative test for functional testing

I am trying to understand what is a negative test case.

For example: Let's consider we have a website where we can upload a file. It should only accept text or CSV file. and it should not have more than 100 charters in width and 100 characters in length. if it's not text or csv or if width or length is exceeding it should show a proper error message.

what would be the negative tests for this?

  • is uploading a file other than a text file a negative test?
  • is uploading a file with 101 in length or width a negative test?

I think both of the above are a positive test case as it's not intended to break the system, it's intended to verify the error messages.

And so if you agree with above statement what should be the negative tests according to you?

Assert that TestNG test method does not throw any Exception

Is there any TestNG assert method or annotation that checks that method does not throw any exception during test execution? For example, if you try to set null as parameter to the tested method and check if there is no NullPointerException(validation for null is present).

module.exports multiple functions in Jest testing

After reading the Jest documentation, when it's mentioned that to export a single function from a tested file they show the following example:

function sum(a, b) {
  return a + b;
}
module.exports = sum;

Now, if I have multiple specific functions I want to export on my tested file, like this:

function sum(a, b) {
  return a + b;
}
function multiply(a, b) {
  return a * b;
}
function subtract(a, b) {
  return a - b;
}
module.exports = sum;
module.exports = multiply;

The multiply function is the only one being exported. How can I make these function be exported? Or only part of my file?

Using PHPUnit, how do I create a procedural test to see if a php page has successfully opened a js page?

To start, I just need a very simple test to see if ('settings.php') has successfully opened ('settings.js').

Later, I will need to test to see if ('settings.js') can be read and then grab a particular setting and then finally return the value of that setting.