Compare text value with the excel value - selenium-ide

I am trying to write an automated script using selenium (Java/JUnit4/Remote Control). Here is the scenario.
I need to verify the value present in textbox with the value present in excel sheet. And if the value matches then test step should pass else fail.

Related

Error during model startup root: Could not setup the parameter: because of: java.lang.NoSuchFieldException:

Currently I am running a model that's read values from Excel spread sheet. The delay value in second linked to parameter which obtain the value from excel sheet 1.
The link between the excel and parameters are working. Moreover, running the model without parameter seems to be working. Can anyone point out what is the error and how can I solve it?
thanks
Extra variables was introduced in excel sheet which code trying to assign it to blocks. I have deleted the unwanted variables from Excel sheet and it worked.

How to link an Input Control to a report's Parameter

I'm unable to link an Input Control to my report's Parameter. I feel I'm doing right, but I can't see the desired result in the final report.
My intention is to create a list, filled by some options, and display the list in a report as a parameter, so the user can (multi)select the options. As far as I know, I must create an Input Control on the server, create a Parameter on the report using the same name between the Input Control and the Parameter.
I've created a List of Values named ListaCalificaciones as follows:
Then, this is the Input Control:
Finally, this is the parameter:
However, when it comes to show the report on Jasper Server's web interface, I can't see a filled input:
Am I missing something?
By the way, I'm using Jasper Studio 6.6.0 and Jasper Server 7.1.0 (compiled version 20180504_1307).
Edit 2018/10/05 13:04
I've changed the input control, so that the id is ic_calificaciones and the name stays as it was (Calificaciones). I've found a way to make it work. First, I deploy the report to my server (local server in my case). Then, I edit the report, go to "Controls and resources", remove the ic_calificaciones parameter and add a InputControl parameter to the report. That way the Calificaciones parameter gets filled up with options.
I found the solution, it was just in front, but due to a poor UI I just didn't realise...
You must edit your parameter's name to match the Input Control's name, in my case it ought to be ic_valoracion. Then, the parameter-to-input-control-binding has to be made when publishing the report to the server.
So, being in Jasper Studio, click on publish button, as seen in the following picture:
Now, select the location where to publish the report. Then, the second step is what we're looking for, it's the place where you must select the resources to publish. As seen in the next image, you must edit your parameter's type to select "Link To Resource", click on whichever place and a new prompt will appear. Now, there, select the desired Input Control.
Finally, test your report.

Single value input control not visible on JR Server

I have two parameters in report:
week ---> has isForPrompting="true" property
year ---> has isForPrompting="true" property
But when I add a single value input control and run the same report on JasperReports Server, only a pop up window is opening up and not the the single value input control.
Also If I add a single value input control to my other reports, its showing up when I run the reports on JR Server.
I really don't understand why the single value input control is not showing up for the current report when everything is running well on iReport designer?
Most common problem: Your input control doesn't match exactly. The input control ID has to match the parameter. Remember that it's case sensitive.

How to select id and name of multiselect input control in jrxml?

I am working with jasperserver and ireport. I have created multiselect input control. I need to access its id as well as name in report. How can I do that?
You cannot.
The value gets passed as the value of the relevant parameter (the parameter with exactly the same name as the input control). The label used in the input control (if any) does not get passed to the report. It's it's something that you want to pass to the report then you need to pass it as part of the value.

Verify input text element is not empty in Selenium IDE

How can I verify that an input element has any text in it. It is loaded with random text so I can't verify a specific value, but there must be some text in it.
I'm using Selenium IDE
In Selenium IDE you can use the verifyEval command and a bit of JavaScript to verify that a field is populated, or not.
Command: verifyEval
Target: this.page().findElement("//input[#id='email']").value != ''
Value: true
In this case, I'm testing that the <input type="email" id="email" value='address#domain.com"> is not an empty field on my HTML page.
When this command is run, the JavaScript code in the target is evaluated. Here it is testing the current value of the email field against an empty string. If they don't match (e.g. the field isn't empty) then it true is returned. This return value is then compared to the expected Value which is also true and so the test passes.
I just use
verifyNotValue|//input[#id='email']|
the 3rd param is empty
This should be a cinch if you use Selenium-RC with any programming language. However, given that you are using the IDE, I would recommend adding this user extension. This will give you some looping constructs. You can use storeText and then take a decision based on the value of the variable in which the retrieved text is stored. The Stored Vars is another useful IDE firefox extension for analyzing the contents of the storeText variable.
Try this:
driver.find_element_by_id("email").get_attribute("value") != ''
It was part of a sign up form assertion.
The firstName field was provided with data. Then i used the following code to verify whether the field was filled up with data.
if(driver.findElement(By.cssSelector("#FirstName")).getText()==""){
System.out.println("field didn't fillup with data");
}
else {
System.out.println("field filled up with data");
}