This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!

Rajesh Moo

Greenhorn
+ Follow
since Sep 12, 2016
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Rajesh Moo

Hi,

Encrypted password calling in the method and decript the data than pass to login page. But i applied different types of data types for decription, but failed. please refer the code and guide me.


//
def a="India@123!"
def encoded = a.bytes.encodeBase64().toString()

    //encoded = "SW5kaWFAMTIz"

void pass (byte encoded)
{

new String(encoded.decodeBase64())
return pass
}

password = pass

//
so password should be India@123!

Please guideme

‚Äč
5 years ago
Hi,

I'm using Geb,Spock and groovy. When testing the web application with multiple when and then block,if any one block is failed it automatically close the browser.
How to use the same url and browser for another test?

Thanks
-Rajesh
5 years ago

Rajesh Moo wrote:
Hi

I'm developing automation test suit using Geb,Spock and groovy. Verifying multiple when..then block in single feature any one block got failed, It stop execution. What are the logic we have to put for running all the blocks even any when..then block failed. Please guide me.

Thanks
-Moorthy



For example
def "test"(){
       given:
       println(" checking 3 nos")
       when:
       def a = 5
       def b = 10
       def c = 20

       if (a < b)
           println("Pass")

       then:
       true

       when:

       def a1 = 5
       def a2 = 10
       def a3 = 20
       if (a2 > a3)
           println("Fail")

       then:
       false
       
       when:
       def a11 = 5
       def a22 = 10
       def a33 = 20
       if (a33 > a11)
           println("pass")

       then:
       true

It never moves to 3rd block.It throws error and execution stops
5 years ago

Hi

I'm developing automation test suit using Geb,Spock and groovy. Verifying multiple when..then block in single feature any one block got failed, It stop execution. What are the logic we have to put for running all the blocks even any when..then block failed. Please guide me.

Thanks
-Moorthy
5 years ago