check if the file is existing or not using PAF - ipaf

I am looking to validate a file is existing or not in a folder using pace Automation Framework?
Is any Tag is there to perform this action?

The variable 'Status' returns a boolean value as true/false. Using tag we can validate the value of the variable.

Related

When should I use old( key, value) on blade template ? Is it necessary in latest laravel version?

I noticed that in the older laravel blade template it was recommended to use old (key, value) to retrieve old values when form validation fails. (controller method handling the validation will post back to the form with the as-is data in request object)
Is it still necessary to use it in the latest laravel version ?
When should one use the old (key, value) function on the form fields on laravel blade template?
In Laravel there is a convention that most "get me some value" like functions provide a way to cover case "there is no value to get", therefore signature of most getter like functions looks like:
get('key', $default = null)
So in your case you would want to use old('key', default) in:
create form when you as programmer set valid default value (not placeholder), perhaps date of some action for "today/now" old('publish_at', Carbon::now()).
edit form old('publish_at', $post->publish_at), which means that on first load of edit form input field is pre-populated with data from database

Runtime Test Data for Testscript in TestComplete

I started using Test Complete to automate Desktop application.
The issue is scripts holds the value which i entered while recording and the value is hard-coded.
i want the pass the value during run time. how can i achieve it?
This depends on how you want to do this. If you want to put it to your test as a parameter from another test or using a project's test item, you can define a keyword test parameter (see Keyword Test Parameters).
If you want to make a human user specify a value on runtime (although this is not very "automated"), you can create a user form that will request this value (see User Forms - Overview).
And if you want to pass a parameter to your test using command line, you can use script to read parameters from the TestComplete command-line, assign a project variable with this value and then use this variable instead of a hard coded value. See ParamStr Method, ParamCount Method and Project And Project Suite Variables.
And if you want to feed your test with some data from an external source, you can do this using the data-driven testing feature of TestComplete. See Data-Driven Testing.

CodeIgniter Validation: possible to validate GET query strings?

The form validation library seems to only work on POST. I need to use query strings and would like to use CI to validate the passed values. Is there a way to do this?
The current Codeigniter 3.0 development branch provides an option to insert your own variable instead of $_POST. So you could start using 3.0.
Alternatively, the only way in CI2.1 is to do $_POST=$_GET before you run the validation.
See this page for the CodeIgniter 3 solution:-
http://www.codeigniter.com/userguide3/libraries/form_validation.html#validating-an-array-other-than-post
For CodeIgniter 2 you can do $_POST = $_GET; before $this->form_validation->run() as mentioned above.
You could overwrite the Form_validation function run in a MY_Form_Validation and modify it.
Reference How do I validate a form field in Codeigniter when using Get parameters?
Before validation rules, set the validation data with the following code.
$this->form_validation->set_data($_GET);

cakephp validation required for files

I create form with input type file.
I would like validate this field when is selected file.
Rule with 'require' doesn't work
i recommend using MeioUpload for uploading files. there are several parameter to adjust the behavior to your own needs.
MeioUpload

Drupal: Custom Content Type validation

I've created a custom content type with CCK.
If I need to add some custom code for validating fields of this content type's record form, where do I add the code and which functions are best for this task?
The easiest way would probably be hook_form_alter() and the #validation attribute on the form. You would of cause have to implement this in your own module.
The form api is what you use to validate, you'll be crafting your own validation function. I'm going to assume you are using D6
There's a less painful way:
http://drupal.org/project/validation_api
This module lets you make php code or regex for any given field.
Hope this helps.
To create your own module to implement form validation I suggest this method:
create a new module for content type field validation in drupal

Resources