Hi Manoj,

These are our requirements we need to write a generic script or function it 
should check all mandatory fields in various webforms and webPages.

In general we would expect to fill out all fields except one, and attempt 
to submit.This would be expected to fail.We then enter text into the field 
we left blank, and delete from another.For radio choices and Date pickers 
we may not be able to unselect / delete a selection, so we may need to 
submit a form multiple times.
For fields not expected to be mandatory we can submit these 
unfilled/selected in bulk.For each test we should be able to continue 
checks whether that field fails or not.i.e if a field is expected to be 
mandatory and is found not to be (or vice versa), we should not abort the 
test-we should check other fields as well.

The mandatory fields may change for a form per user type,per action, or 
based on decisions on the form(for example select a type of limit, and the 
mandatory fields may be defined by that choice.

Your answers will be really appreciated!!! 

Best Regards, 

Srini


On Monday, July 3, 2017 at 7:29:38 AM UTC+5:30, Manoj Gupta wrote:
>
> Use xpath to fetc.
>

 

> h all the inputs having * in the text before them.
>
> On 3 Jul 2017 12:32 a.m., <[email protected] <javascript:>> wrote:
>
>> Hi All, 
>>
>> I´m trying to run a validations for Mandatory and 
>>  the same has Red asterisks .I would like to perform a test that check 
>> that validates if 
>> "* XXXX" fields has a red asterisk (meaning that is mandatory
>> Please take in count that since the Mandatory
>> fields are dynamic, they are not te same object, for example the 
>> systems displays "* Field Name", when i want to add the object to the 
>> repository i get one WebElement for the "*" and another one for "Field 
>> Name", there must be somehow to link both objects and tell QTP to 
>> perform something like "If "Field Name" has red asterisk this means 
>> that is a mandatory field, like that get all mandatory fields compare 
>> with the expected mandatory fields(from config or excel) and try to enter 
>> data all fields except one field and try to submit check the error message 
>> need to repeat this for all mandatory fields.
>>
>> Your answers will be really appreciated!!! 
>>
>> Best Regards, 
>>
>> Srini
>>
>> -- 
>> -- 
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected] 
>> <javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
-- 
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en

--- 
You received this message because you are subscribed to the Google Groups "QTP 
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to